GTK: re-throw non-catched errors in withCopyModeDialog
This commit is contained in:
parent
1738375432
commit
c28eb1976a
@ -28,6 +28,7 @@ import Control.Applicative
|
|||||||
import Control.Exception
|
import Control.Exception
|
||||||
(
|
(
|
||||||
catch
|
catch
|
||||||
|
, throw
|
||||||
, try
|
, try
|
||||||
, SomeException
|
, SomeException
|
||||||
)
|
)
|
||||||
@ -130,6 +131,7 @@ withCopyModeDialog fa =
|
|||||||
case e of
|
case e of
|
||||||
FileDoesExist _ -> doIt
|
FileDoesExist _ -> doIt
|
||||||
DirDoesExist _ -> doIt
|
DirDoesExist _ -> doIt
|
||||||
|
e -> throw e
|
||||||
where
|
where
|
||||||
doIt = do cm <- showCopyModeDialog
|
doIt = do cm <- showCopyModeDialog
|
||||||
case cm of
|
case cm of
|
||||||
|
Loading…
Reference in New Issue
Block a user