aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Error.hs
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2021-12-29 15:00:59 +0200
committerIgor Pashev <pashev.igor@gmail.com>2021-12-29 15:00:59 +0200
commitb4361712899fd0183fea5513180cb383979616de (patch)
tree688ab7ee2ab3a8cd32b4e37b506099aec95388f7 /src/Text/Pandoc/Error.hs
parent726ad97faebe59e024d68d293e663c02bbe423c8 (diff)
parentd960282b105a6469c760b4308a3b81da723b7256 (diff)
downloadpandoc-b4361712899fd0183fea5513180cb383979616de.tar.gz
Merge https://github.com/jgm/pandoc
Diffstat (limited to 'src/Text/Pandoc/Error.hs')
-rw-r--r--src/Text/Pandoc/Error.hs30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/Text/Pandoc/Error.hs b/src/Text/Pandoc/Error.hs
index 9dee8356b..f16ad2997 100644
--- a/src/Text/Pandoc/Error.hs
+++ b/src/Text/Pandoc/Error.hs
@@ -171,34 +171,34 @@ handleError (Left e) =
exitCode =
case e of
PandocIOError{} -> 1
+ PandocFailOnWarningError{} -> 3
+ PandocAppError{} -> 4
+ PandocTemplateError{} -> 5
+ PandocOptionError{} -> 6
+ PandocUnknownReaderError{} -> 21
+ PandocUnknownWriterError{} -> 22
+ PandocUnsupportedExtensionError{} -> 23
+ PandocCiteprocError{} -> 24
+ PandocBibliographyError{} -> 25
+ PandocEpubSubdirectoryError{} -> 31
+ PandocPDFError{} -> 43
+ PandocXMLError{} -> 44
+ PandocPDFProgramNotFoundError{} -> 47
PandocHttpError{} -> 61
PandocShouldNeverHappenError{} -> 62
PandocSomeError{} -> 63
PandocParseError{} -> 64
PandocParsecError{} -> 65
PandocMakePDFError{} -> 66
- PandocOptionError{} -> 6
PandocSyntaxMapError{} -> 67
- PandocFailOnWarningError{} -> 3
- PandocPDFProgramNotFoundError{} -> 47
- PandocPDFError{} -> 43
- PandocXMLError{} -> 44
PandocFilterError{} -> 83
PandocLuaError{} -> 84
- PandocCouldNotFindDataFileError{} -> 97
- PandocResourceNotFound{} -> 99
- PandocTemplateError{} -> 5
- PandocAppError{} -> 4
- PandocEpubSubdirectoryError{} -> 31
PandocMacroLoop{} -> 91
PandocUTF8DecodingError{} -> 92
PandocIpynbDecodingError{} -> 93
PandocUnsupportedCharsetError{} -> 94
- PandocUnknownReaderError{} -> 21
- PandocUnknownWriterError{} -> 22
- PandocUnsupportedExtensionError{} -> 23
- PandocCiteprocError{} -> 24
- PandocBibliographyError{} -> 25
+ PandocCouldNotFindDataFileError{} -> 97
+ PandocResourceNotFound{} -> 99
err :: Int -> Text -> IO a
err exitCode msg = do