@@ -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')
301 Nothing -> do
300 Nothing -> do