GTK: re-throw non-catched errors in withCopyModeDialog

This commit is contained in:
2015-12-28 03:18:22 +01:00
parent 1738375432
commit c28eb1976a

View File

@@ -28,6 +28,7 @@ import Control.Applicative
import Control.Exception
(
catch
, throw
, try
, SomeException
)
@@ -130,6 +131,7 @@ withCopyModeDialog fa =
case e of
FileDoesExist _ -> doIt
DirDoesExist _ -> doIt
e -> throw e
where
doIt = do cm <- showCopyModeDialog
case cm of