From 7ce5862b5554d046fb9142dfa353e23c60b762e7 Mon Sep 17 00:00:00 2001 From: nickburlett Date: Wed, 30 May 2007 19:10:24 +0200 Subject: log errors on executeFile in restart I found it difficult to track down a problem in the restart code where xmonad was silently not restarting. This will log the error to stderr, which should show up in .xsession-errors darcs-hash:20070530171024-01341-e8d0657705a1236dec13d1a6932d0c45b6523322.gz --- XMonad.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XMonad.hs b/XMonad.hs index 2f1577c..b6450ee 100644 --- a/XMonad.hs +++ b/XMonad.hs @@ -150,7 +150,7 @@ 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) - (const $ return ()) -- ignore executable not found exception + ( (hPutStrLn stderr). show ) -- print executable not found exception -- | Run a side effecting action with the current workspace. Like 'when' but whenJust :: Maybe a -> (a -> X ()) -> X () -- cgit v1.2.3