diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2017-06-20 22:41:34 +0200 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2017-06-20 22:41:34 +0200 |
| commit | 8f8f505fd4db9a4903dc616dc179901d2492c6dd (patch) | |
| tree | 8a2f846a9b30bd856c5d8b83254f176d71685584 /src/Text | |
| parent | 2363e6a15bdde1c206d65461bd2e21f773dbc808 (diff) | |
| download | pandoc-8f8f505fd4db9a4903dc616dc179901d2492c6dd.tar.gz | |
Text.Pandoc.Error: added PandocTemplateError.
Diffstat (limited to 'src/Text')
| -rw-r--r-- | src/Text/Pandoc/Error.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Error.hs b/src/Text/Pandoc/Error.hs index 3cf381168..0056a1591 100644 --- a/src/Text/Pandoc/Error.hs +++ b/src/Text/Pandoc/Error.hs @@ -61,6 +61,7 @@ data PandocError = PandocIOError String IOError | PandocFilterError String String | PandocCouldNotFindDataFileError String | PandocResourceNotFound String + | PandocTemplateError String | PandocAppError String deriving (Show, Typeable, Generic) @@ -101,6 +102,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 PandocAppError s -> err 1 s err :: Int -> String -> IO a |
