summaryrefslogtreecommitdiff
path: root/tests/Hakyll/Web/Template/Context
diff options
context:
space:
mode:
authorJasper Van der Jeugt <m@jaspervdj.be>2019-08-30 11:46:13 +0200
committerGitHub <noreply@github.com>2019-08-30 11:46:13 +0200
commit036c583ea243869f05a5a311c90b94943a2b635c (patch)
treeaadee7988980544f84b83d808707080481568cc5 /tests/Hakyll/Web/Template/Context
parent779fa66c7b1719e071dc3f4d38a4cc2feb9492c6 (diff)
downloadhakyll-036c583ea243869f05a5a311c90b94943a2b635c.tar.gz
Improve error messages
Diffstat (limited to 'tests/Hakyll/Web/Template/Context')
-rw-r--r--tests/Hakyll/Web/Template/Context/Tests.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Hakyll/Web/Template/Context/Tests.hs b/tests/Hakyll/Web/Template/Context/Tests.hs
index 3adedd8..66460b6 100644
--- a/tests/Hakyll/Web/Template/Context/Tests.hs
+++ b/tests/Hakyll/Web/Template/Context/Tests.hs
@@ -62,6 +62,6 @@ testContextDone store provider identifier key context =
cf <- unContext context key [] item
case cf of
StringField str -> return str
- ListField _ _ -> error $
+ _ -> error $
"Hakyll.Web.Template.Context.Tests.testContextDone: " ++
- "Didn't expect ListField"
+ "expected StringField"