@@ -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