Thanks to visit codestin.com
Credit goes to github.com

Skip to content

disambiguate tidy I/O errors vs tidy rule warnings #11

@mcandre

Description

@mcandre

tidy-html5 unfortunately conflates any I/O errors with rule warnings, making it rather difficult to obtain a meaningful error code.

We can capture the output (stdin and/or stdout) and grep it for the message Document: "(anything here)" is not a file!

That may not catch all I/O errors, for example read errors or broken pipe errors. But it's a start.

Eventually may be worth publishing the tidy_up wrapper as its own separate project and dependency of this project.

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