diff options
author | Jasper Van der Jeugt <m@jaspervdj.be> | 2013-04-04 00:26:05 +0200 |
---|---|---|
committer | Jasper Van der Jeugt <m@jaspervdj.be> | 2013-04-04 00:26:05 +0200 |
commit | cbfc7c18e1aa6c498d2fc7bdecf2f127b6582dbd (patch) | |
tree | abf6e6492f1d8e1588056daec95ef000d609b1f9 /src/Hakyll/Core/Runtime.hs | |
parent | c40cf286afacd130c1ddd28abacb3c484895076b (diff) | |
download | hakyll-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.hs | 4 |
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 |