Removed an unnecessary liftIO.

This commit is contained in:
John MacFarlane 2019-07-20 12:53:44 -07:00
parent 30eda43192
commit 8435de3236

View file

@ -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