diff options
-rw-r--r-- | src/Text/Pandoc/App.hs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Text/Pandoc/App.hs b/src/Text/Pandoc/App.hs index e6d1f9356..737e43fd9 100644 --- a/src/Text/Pandoc/App.hs +++ b/src/Text/Pandoc/App.hs @@ -294,8 +294,7 @@ convertWithOpts opts = do writerOptions doc case res of Right pdf -> writeFnBinary outputFile pdf - Left err' -> liftIO $ - E.throwIO $ PandocPDFError $ + Left err' -> throwError $ PandocPDFError $ TL.unpack (TE.decodeUtf8With TE.lenientDecode err') Nothing -> do |