diff options
| -rw-r--r-- | src/Utility/ConcurrentOutput.hs | 4 |
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 |
