diff options
Diffstat (limited to 'src/Text/Pandoc/Error.hs')
| -rw-r--r-- | src/Text/Pandoc/Error.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Error.hs b/src/Text/Pandoc/Error.hs index e4a5bb092..62843dbd2 100644 --- a/src/Text/Pandoc/Error.hs +++ b/src/Text/Pandoc/Error.hs @@ -70,6 +70,7 @@ data PandocError = PandocIOError String IOError | PandocEpubSubdirectoryError String | PandocMacroLoop String | PandocUTF8DecodingError String Int Word8 + | PandocIpynbDecodingError String deriving (Show, Typeable, Generic) instance Exception PandocError @@ -124,6 +125,8 @@ handleError (Left e) = "UTF-8 decoding error in " ++ f ++ " at byte offset " ++ show offset ++ " (" ++ printf "%2x" w ++ ").\n" ++ "The input must be a UTF-8 encoded text." + PandocIpynbDecodingError w -> err 93 $ + "ipynb decoding error: " ++ w err :: Int -> String -> IO a err exitCode msg = do |
