summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSpencer Janssen <sjanssen@cse.unl.edu>2007-06-11 18:11:52 +0200
committerSpencer Janssen <sjanssen@cse.unl.edu>2007-06-11 18:11:52 +0200
commit40fc8649f6b4ec12b6bb83b6001ac34c23abb370 (patch)
tree5695a595dc38a88630f50837aee1256ebc5a3f4a
parentf2f6688a012d868203311cf36ea08e972fb06cb1 (diff)
downloadmetatile-40fc8649f6b4ec12b6bb83b6001ac34c23abb370.tar
metatile-40fc8649f6b4ec12b6bb83b6001ac34c23abb370.zip
Use catchIO in 'restart'
darcs-hash:20070611161152-a5988-1311671abda1c7edfa223255dff0128860b30d38
-rw-r--r--XMonad.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/XMonad.hs b/XMonad.hs
index 7258fbb..0cc0a63 100644
--- a/XMonad.hs
+++ b/XMonad.hs
@@ -163,8 +163,7 @@ restart :: Maybe String -> Bool -> X ()
restart mprog resume = do
prog <- maybe (io $ getProgName) return mprog
args <- if resume then gets (("--resume":) . return . show . windowset) else return []
- io $ catch (executeFile prog True args Nothing)
- (hPutStrLn stderr . show) -- print executable not found exception
+ catchIO (executeFile prog True args Nothing)
-- | Run a side effecting action with the current workspace. Like 'when' but
whenJust :: Maybe a -> (a -> X ()) -> X ()