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

Don't write to stderr when there are no errors #22

Open
tylerbutler opened this issue Nov 9, 2023 · 1 comment
Open

Don't write to stderr when there are no errors #22

tylerbutler opened this issue Nov 9, 2023 · 1 comment

Comments

@tylerbutler
Copy link

tsc-multi writes to stderr even when it just says "Found 0 errors". It should use stdout in the success case.

@niieani
Copy link

niieani commented Feb 10, 2024

The unix philosophy generalizes stderr for writing information about errors, not necessarily just errors themselves. Check out how tools like curl use stderr for diagnostic output (progress meters, and other diagnostic information all go to stderr).
stdout is usually reserved for output that is meant to be piped to other tools.

From wikipedia:

Standard error is another output stream typically used by programs to output error messages or diagnostics.

I think the current behavior is fine, since "Found 0 errors" qualifies as a diagnostic message in my view.

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

No branches or pull requests

2 participants