[patch] output exitcode when no xmonad.error output
Hi, If xmonad is running without ghc installed for some reason and one tries to restart it (mod-q), the recompile error dialog doesn't contain any useful error message from execv (it fails silently when it can't find the command). Here is a small patch to output the exitcode when compilation fails and xmonad.error is empty. Jens
On 26 April 2011 16:58, Jens Petersen <juhp@community.haskell.org> wrote:
If xmonad is running without ghc installed for some reason and one tries to restart it (mod-q), the recompile error dialog doesn't contain any useful error message from execv (it fails silently when it can't find the command).
Here is a small patch to output the exitcode when compilation fails and xmonad.error is empty.
Oops, forgot to attach the dpatch... Jens
Applied. * On Wednesday, April 27 2011, Jens Petersen wrote:
On 26 April 2011 16:58, Jens Petersen <juhp@community.haskell.org> wrote:
If xmonad is running without ghc installed for some reason and one tries to restart it (mod-q), the recompile error dialog doesn't contain any useful error message from execv (it fails silently when it can't find the command).
Here is a small patch to output the exitcode when compilation fails and xmonad.error is empty.
Oops, forgot to attach the dpatch...
Jens
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
This 1-patch bundle was just applied to http://code.haskell.org/xmonad: 20110426062341 Jens Petersen <juhp@community.haskell.org> * output error code when xmonad.hs compile fails without any error output Currently if there is no ghc on the path say for some reason, xmonad.error is empty. This patch makes it output the exitcode code when the compile process fails without any error output. (It might be easier just to spawn a shell to get "ghc: command not found" output for free.) -- This message was brought to you by DarcsWatch http://darcswatch.nomeata.de/repo_http:__code.haskell.org_xmonad.html#bundle...
participants (3)
-
Adam Vogt -
darcswatch@nomeata.de -
Jens Petersen