Skip to content

fix: do not pollute stdout JSON with messages#1626

Merged
rdeltour merged 1 commit intomainfrom
issue/1603/stdout
Sep 1, 2025
Merged

fix: do not pollute stdout JSON with messages#1626
rdeltour merged 1 commit intomainfrom
issue/1603/stdout

Conversation

@rdeltour
Copy link
Copy Markdown
Member

@rdeltour rdeltour commented Sep 1, 2025

The message "No errors or warnings detected." was printed to stdout even when EPUBCheck was configured to print a JSON report to stdout``, why caused the JSON output to be invalid. This commit fixes that by checking that JSON (or XML/XMP) is not being printed to stdout` before writing this message.

Fixes #1603

The message "No errors or warnings detected." was printed to `stdout`
even when EPUBCheck was configured to print a JSON report to `stdout``,
why caused the JSON output to be invalid. This commit fixes that by
checking that JSON (or XML/XMP) is not being printed to `stdout` before
writing this message.

Fixes #1603
@rdeltour rdeltour self-assigned this Sep 1, 2025
@rdeltour rdeltour added this to the v5.3.0 milestone Sep 1, 2025
@rdeltour rdeltour merged commit 1440418 into main Sep 1, 2025
6 checks passed
@rdeltour rdeltour deleted the issue/1603/stdout branch September 1, 2025 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The message "No errors or warnings detected." is printed out to stdout

1 participant