aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Error.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-08-25 23:49:25 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-08-25 23:49:25 -0700
commit2143d4d2a04f07d3823b3e54fc34cead33d5c184 (patch)
treef5aaff2eda06bd97bee9c49abfad5744544356f4 /src/Text/Pandoc/Error.hs
parente2c4d1ccfc0ed8382954b32d6b7e1d084ee27aef (diff)
downloadpandoc-2143d4d2a04f07d3823b3e54fc34cead33d5c184.tar.gz
Better message for PandocTemplateError.
Diffstat (limited to 'src/Text/Pandoc/Error.hs')
-rw-r--r--src/Text/Pandoc/Error.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Error.hs b/src/Text/Pandoc/Error.hs
index 326ddf918..afb18a2f6 100644
--- a/src/Text/Pandoc/Error.hs
+++ b/src/Text/Pandoc/Error.hs
@@ -98,7 +98,7 @@ handleError (Left e) =
"Could not find data file " ++ fn
PandocResourceNotFound fn -> err 99 $
"File " ++ fn ++ " not found in resource path"
- PandocTemplateError s -> err 5 s
+ PandocTemplateError s -> err 5 $ "Error compiling template " ++ s
PandocAppError s -> err 1 s
PandocEpubSubdirectoryError s -> err 31 $
"EPUB subdirectory name '" ++ s ++ "' contains illegal characters"