sean0x42 / markdown-extract

Extract sections of a markdown file. Useful for automatically extracting changelogs
https://hub.docker.com/r/sean0x42/markdown-extract
MIT License
31 stars 7 forks source link

Error messages end up on `stdout` instead of `stderr` #20

Closed zhimsel closed 1 month ago

zhimsel commented 2 months ago

As the title says. When the markdown-extract command encounters an error, it returns a non-zero exit code, but sends its error output (e.g. Error: No matches.) to stdout, where it should go to stderr.

zhimsel commented 2 months ago

This PR is also tangentially related.