git.iko.soy/typeable/pandoc
on master help sign in
Removed an unnecessary liftIO.
commit8435de323621afa05b260f1a8620a31078089dbc authorJohn MacFarlane <jgm@berkeley.edu> dateSat 20 Jul 2019, 12:53 (7 years ago) parent30eda43
1 file changed+1−2
src/Text/Pandoc/App.hs+1−2
src/Text/Pandoc/App.hs+1−2
@@ -294,8 +294,7 @@ convertWithOpts opts = do
294294 writerOptions doc
295295 case res of
296296 Right pdf -> writeFnBinary outputFile pdf
297− Left err' -> liftIO $
298− E.throwIO $ PandocPDFError $
297+ Left err' -> throwError $ PandocPDFError $
299298 TL.unpack (TE.decodeUtf8With TE.lenientDecode err')
300299
301300 Nothing -> do