summaryrefslogtreecommitdiff
path: root/src/Hakyll/Core/Runtime.hs
diff options
context:
space:
mode:
authorJasper Van der Jeugt <m@jaspervdj.be>2013-04-04 00:26:05 +0200
committerJasper Van der Jeugt <m@jaspervdj.be>2013-04-04 00:26:05 +0200
commitcbfc7c18e1aa6c498d2fc7bdecf2f127b6582dbd (patch)
treeabf6e6492f1d8e1588056daec95ef000d609b1f9 /src/Hakyll/Core/Runtime.hs
parentc40cf286afacd130c1ddd28abacb3c484895076b (diff)
downloadhakyll-cbfc7c18e1aa6c498d2fc7bdecf2f127b6582dbd.tar.gz
Debug info for Alternative instances
See #126
Diffstat (limited to 'src/Hakyll/Core/Runtime.hs')
-rw-r--r--src/Hakyll/Core/Runtime.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Hakyll/Core/Runtime.hs b/src/Hakyll/Core/Runtime.hs
index 9f27969..0e1ceb2 100644
--- a/src/Hakyll/Core/Runtime.hs
+++ b/src/Hakyll/Core/Runtime.hs
@@ -200,7 +200,9 @@ chase trail id'
result <- liftIO $ runCompiler compiler read'
case result of
-- Rethrow error
- CompilerError e -> throwError e
+ CompilerError [] -> throwError
+ "Compiler failed but no info given, try running with -v?"
+ CompilerError es -> throwError $ intercalate "; " es
-- Huge success
CompilerDone (SomeItem item) cwrite -> do