summaryrefslogtreecommitdiff
path: root/lib/Hakyll/Core
diff options
context:
space:
mode:
authorNick Boultbee <declension@users.noreply.github.com>2017-11-17 14:55:27 +0000
committerJasper Van der Jeugt <jaspervdj@gmail.com>2017-11-17 15:55:27 +0100
commit7ee4e6134cc447c8b053129e7557d9883c7e8e01 (patch)
treeedd011fd7b7ced8f40690410c77211ab91b63da7 /lib/Hakyll/Core
parent7a1f5cd5ff057af2bf3bc542d2073c94f046a84a (diff)
downloadhakyll-7ee4e6134cc447c8b053129e7557d9883c7e8e01.tar.gz
Make unixFilter output stderr when failing
Fixes #581.
Diffstat (limited to 'lib/Hakyll/Core')
-rw-r--r--lib/Hakyll/Core/UnixFilter.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Hakyll/Core/UnixFilter.hs b/lib/Hakyll/Core/UnixFilter.hs
index 734d8d8..b796bb1 100644
--- a/lib/Hakyll/Core/UnixFilter.hs
+++ b/lib/Hakyll/Core/UnixFilter.hs
@@ -92,7 +92,8 @@ unixFilterWith writer reader programName args input = do
ExitSuccess -> return output
ExitFailure e -> fail $
"Hakyll.Core.UnixFilter.unixFilterWith: " ++
- unwords (programName : args) ++ " gave exit code " ++ show e
+ unwords (programName : args) ++ " gave exit code " ++ show e ++
+ ". (Error: " ++ err ++ ")"
--------------------------------------------------------------------------------