Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make error message in RuntimeException readable #226

Closed
david-jointech opened this issue Aug 4, 2021 · 0 comments · Fixed by #227
Closed

Make error message in RuntimeException readable #226

david-jointech opened this issue Aug 4, 2021 · 0 comments · Fixed by #227

Comments

@david-jointech
Copy link
Contributor

david-jointech commented Aug 4, 2021

When pandoc has an error, the output from pandoc gets put into the Runtime-Exception as bytes (directly from stderr).

For me this results in the whole error-message from pandoc being in one line (even though it should have linebreaks). Especially when using "--verbose" this gets very unreadable.

I've checked and by encoding stderr in the same way as stdout in https://github.com/NicklasTegner/pypandoc/blob/master/pypandoc/__init__.py line 322 (_convert_input, towards the end), this error is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant