aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-07-20 12:53:44 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-07-20 12:53:44 -0700
commit8435de323621afa05b260f1a8620a31078089dbc (patch)
tree040d41e3f6cbc72571019c9312d9e21f9201e2bc
parent30eda43192f34c21562e225204cd2c633e908a89 (diff)
downloadpandoc-8435de323621afa05b260f1a8620a31078089dbc.tar.gz
Removed an unnecessary liftIO.
-rw-r--r--src/Text/Pandoc/App.hs3
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