diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-07-20 12:53:44 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-07-20 12:53:44 -0700 |
commit | 8435de323621afa05b260f1a8620a31078089dbc (patch) | |
tree | 040d41e3f6cbc72571019c9312d9e21f9201e2bc /src | |
parent | 30eda43192f34c21562e225204cd2c633e908a89 (diff) | |
download | pandoc-8435de323621afa05b260f1a8620a31078089dbc.tar.gz |
Removed an unnecessary liftIO.
Diffstat (limited to 'src')
-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 |