Skip to content

Make error message in RuntimeException readable #226

@david-jointech

Description

@david-jointech

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions