GTK: re-throw non-catched errors in withCopyModeDialog

This commit is contained in:
Julian Ospald 2015-12-28 03:18:22 +01:00
parent 1738375432
commit c28eb1976a
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020
1 changed files with 2 additions and 0 deletions

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