summaryrefslogtreecommitdiff
path: root/src/Utility/ConcurrentOutput.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Utility/ConcurrentOutput.hs')
-rw-r--r--src/Utility/ConcurrentOutput.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Utility/ConcurrentOutput.hs b/src/Utility/ConcurrentOutput.hs
index be5fb8d3..5584d7a9 100644
--- a/src/Utility/ConcurrentOutput.hs
+++ b/src/Utility/ConcurrentOutput.hs
@@ -87,7 +87,9 @@ takeOutputLock' block = go =<< withLock tryTakeTMVar
then do
hPutStrLn stderr "WAIT PROCESS"
hFlush stderr
- void $ P.waitForProcess h
+ (void $ P.waitForProcess h)
+ `catchIO`
+ (\e -> hPutStrLn stderr (show ("WAIT PROCESS failed", e)))
hPutStrLn stderr "WAIT PROCESS done"
hFlush stderr
havelock