From 5aef7d04f03ff3abbe621f0a4364ecef06145c9b Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
Date: Thu, 12 Sep 2019 08:35:21 -0700
Subject: [PATCH] MANUAL: add section for exit codes.

---
 MANUAL.txt | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/MANUAL.txt b/MANUAL.txt
index 28030ae46..93ecbc1b9 100644
--- a/MANUAL.txt
+++ b/MANUAL.txt
@@ -1376,6 +1376,33 @@ Options for wrapper scripts {.options}
 
         pandoc -o foo.html -s
 
+Exit codes
+==========
+
+If pandoc completes successfully, it will return exit code 0.
+Nonzero exit codes have the following meanings:
+
+     1 PandocAppError
+     2 PandocOptionError
+     3 PandocFailOnWarningError
+     5 PandocTemplateError
+    31 PandocEpubSubdirectoryError
+    43 PandocPDFError
+    47 PandocPDFProgramNotFoundError
+    61 PandocHttpError
+    62 PandocShouldNeverHappenError
+    63 PandocSomeError
+    64 PandocParseError
+    65 PandocParsecError
+    65 PandocMakePDFError TODO DUP
+    67 PandocSyntaxMapError
+    83 PandocFilterError
+    91 PandocMacroLoop
+    92 PandocUTF8DecodingError
+    93 PandocIpynbDecodingError
+    97 PandocCouldNotFindDataFileError
+    99 PandocResourceNotFound
+
 Templates
 =========