From 8435de323621afa05b260f1a8620a31078089dbc Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 20 Jul 2019 12:53:44 -0700 Subject: Removed an unnecessary liftIO. --- src/Text/Pandoc/App.hs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/Text/Pandoc') 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 -- cgit v1.2.3