git.iko.soy/typeable/pandoc
on master help sign in
Text.Pandoc.Error: added PandocTemplateError.
commit8f8f505fd4db9a4903dc616dc179901d2492c6dd authorJohn MacFarlane <jgm@berkeley.edu> dateTue 20 Jun 2017, 22:41 (9 years ago) parent2363e6a
1 file changed+2
src/Text/Pandoc/Error.hs+2
src/Text/Pandoc/Error.hs+2
@@ -61,6 +61,7 @@ data PandocError = PandocIOError String IOError
6161 | PandocFilterError String String
6262 | PandocCouldNotFindDataFileError String
6363 | PandocResourceNotFound String
64+ | PandocTemplateError String
6465 | PandocAppError String
6566 deriving (Show, Typeable, Generic)
6667
@@ -101,6 +102,7 @@ handleError (Left e) =
101102 "Could not find data file " ++ fn
102103 PandocResourceNotFound fn -> err 99 $
103104 "File " ++ fn ++ " not found in resource path"
105+ PandocTemplateError s -> err 5 s
104106 PandocAppError s -> err 1 s
105107
106108err :: Int -> String -> IO a