git.iko.soy/typeable/pandoc
on master help sign in
Change exit codes.
4f909c6John MacFarlane
MANUAL.txt+3−3
@@ -1382,10 +1382,10 @@ Exit codes
1382If pandoc completes successfully, it will return exit code 0.
1382If pandoc completes successfully, it will return exit code 0.
1383Nonzero exit codes have the following meanings:
1383Nonzero exit codes have the following meanings:
1384
1384
1385− 1 PandocAppError
1386− 2 PandocOptionError
1387 3 PandocFailOnWarningError
1385 3 PandocFailOnWarningError
1386+ 4 PandocAppError
1388 5 PandocTemplateError
1387 5 PandocTemplateError
1388+ 6 PandocOptionError
1389 31 PandocEpubSubdirectoryError
1389 31 PandocEpubSubdirectoryError
1390 43 PandocPDFError
1390 43 PandocPDFError
1391 47 PandocPDFProgramNotFoundError
1391 47 PandocPDFProgramNotFoundError
@@ -1394,7 +1394,7 @@ Nonzero exit codes have the following meanings:
1394 63 PandocSomeError
1394 63 PandocSomeError
1395 64 PandocParseError
1395 64 PandocParseError
1396 65 PandocParsecError
1396 65 PandocParsecError
1397− 65 PandocMakePDFError TODO DUP
1397+ 66 PandocMakePDFError
1398 67 PandocSyntaxMapError
1398 67 PandocSyntaxMapError
1399 83 PandocFilterError
1399 83 PandocFilterError
1400 91 PandocMacroLoop
1400 91 PandocMacroLoop
src/Text/Pandoc/Error.hs+3−3
@@ -85,8 +85,8 @@ handleError (Left e) =
85 if sourceName errPos == "source"
85 if sourceName errPos == "source"
86 then errorInFile
86 then errorInFile
87 else ""
87 else ""
88− PandocMakePDFError s -> err 65 s
88+ PandocMakePDFError s -> err 66 s
89− PandocOptionError s -> err 2 s
89+ PandocOptionError s -> err 6 s
90 PandocSyntaxMapError s -> err 67 s
90 PandocSyntaxMapError s -> err 67 s
91 PandocFailOnWarningError -> err 3 "Failing because there were warnings."
91 PandocFailOnWarningError -> err 3 "Failing because there were warnings."
92 PandocPDFProgramNotFoundError pdfprog -> err 47 $
92 PandocPDFProgramNotFoundError pdfprog -> err 47 $
@@ -99,7 +99,7 @@ handleError (Left e) =
99 PandocResourceNotFound fn -> err 99 $
99 PandocResourceNotFound fn -> err 99 $
100 "File " ++ fn ++ " not found in resource path"
100 "File " ++ fn ++ " not found in resource path"
101 PandocTemplateError s -> err 5 $ "Error compiling template " ++ s
101 PandocTemplateError s -> err 5 $ "Error compiling template " ++ s
102− PandocAppError s -> err 1 s
102+ PandocAppError s -> err 4 s
103 PandocEpubSubdirectoryError s -> err 31 $
103 PandocEpubSubdirectoryError s -> err 31 $
104 "EPUB subdirectory name '" ++ s ++ "' contains illegal characters"
104 "EPUB subdirectory name '" ++ s ++ "' contains illegal characters"
105 PandocMacroLoop s -> err 91 $
105 PandocMacroLoop s -> err 91 $