git.iko.soy/typeable/pandoc
on master help sign in
Removed an unnecessary liftIO.
8435de3John MacFarlane
src/Text/Pandoc/App.hs+1−2
@@ -294,8 +294,7 @@ convertWithOpts opts = do
294 writerOptions doc
294 writerOptions doc
295 case res of
295 case res of
296 Right pdf -> writeFnBinary outputFile pdf
296 Right pdf -> writeFnBinary outputFile pdf
297− Left err' -> liftIO $
298− E.throwIO $ PandocPDFError $
297+ Left err' -> throwError $ PandocPDFError $
299 TL.unpack (TE.decodeUtf8With TE.lenientDecode err')
298 TL.unpack (TE.decodeUtf8With TE.lenientDecode err')
300
299
301 Nothing -> do
300 Nothing -> do