diff options
| author | Albert Krewinkel <albert@zeitkraut.de> | 2022-09-29 11:28:52 +0200 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2022-09-30 08:33:40 -0700 |
| commit | 14bcb4268b628428c791eebacf204bc00d01da4b (patch) | |
| tree | c75fc9de339eab63ba8bb96f28d49a24790e08f4 /src/Text/Pandoc/Error.hs | |
| parent | 704f337697db0a061817cb02c186841cf999db83 (diff) | |
[API Change] Add new error constructor `PandocNoScriptingEngine`.
The exit code for this error is 89.
Diffstat (limited to 'src/Text/Pandoc/Error.hs')
| -rw-r--r-- | src/Text/Pandoc/Error.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Error.hs b/src/Text/Pandoc/Error.hs index 3e2479d61..c5ba2aa90 100644 --- a/src/Text/Pandoc/Error.hs +++ b/src/Text/Pandoc/Error.hs @@ -53,6 +53,7 @@ data PandocError = PandocIOError Text IOError | PandocXMLError Text Text | PandocFilterError Text Text | PandocLuaError Text + | PandocNoScriptingEngine | PandocCouldNotFindDataFileError Text | PandocCouldNotFindMetadataFileError Text | PandocResourceNotFound Text @@ -117,6 +118,8 @@ renderError e = PandocFilterError filtername msg -> "Error running filter " <> filtername <> ":\n" <> msg PandocLuaError msg -> "Error running Lua:\n" <> msg + PandocNoScriptingEngine -> "This version of pandoc has been compiled " <> + "without Lua support." PandocCouldNotFindDataFileError fn -> "Could not find data file " <> fn PandocCouldNotFindMetadataFileError fn -> @@ -196,6 +199,7 @@ handleError (Left e) = PandocSyntaxMapError{} -> 67 PandocFilterError{} -> 83 PandocLuaError{} -> 84 + PandocNoScriptingEngine -> 89 PandocMacroLoop{} -> 91 PandocUTF8DecodingError{} -> 92 PandocIpynbDecodingError{} -> 93 |
