summaryrefslogtreecommitdiff
path: root/src/Hakyll
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2011-03-07 11:14:20 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2011-03-07 11:14:20 +0100
commitcb4db8b9d53dcdfc5a927d5146d21c5c85d955cb (patch)
tree584e163a85f2895a19d327a600efc0c957d59a5f /src/Hakyll
parentb9bc7f90e1d1f1e4d4fd41870b4ed487636df7db (diff)
downloadhakyll-cb4db8b9d53dcdfc5a927d5146d21c5c85d955cb.tar.gz
Throw nice error in cached
Diffstat (limited to 'src/Hakyll')
-rw-r--r--src/Hakyll/Core/Compiler.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Hakyll/Core/Compiler.hs b/src/Hakyll/Core/Compiler.hs
index 5fb7b01..371594f 100644
--- a/src/Hakyll/Core/Compiler.hs
+++ b/src/Hakyll/Core/Compiler.hs
@@ -275,9 +275,9 @@ cached name (Compiler d j) = Compiler d $ const $ CompilerM $ do
return v
else do v <- liftIO $ storeGet store name identifier
case v of Just v' -> return v'
- Nothing -> error'
+ Nothing -> throwError error'
where
- error' = error "Hakyll.Core.Compiler.cached: Cache corrupt!"
+ error' = "Hakyll.Core.Compiler.cached: Cache corrupt!"
-- | Create an unsafe compiler from a function in IO
--