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

Collect errors from stdout also (i.e. not only from stderr) #38

Open
gamboz opened this issue Nov 4, 2022 · 0 comments
Open

Collect errors from stdout also (i.e. not only from stderr) #38

gamboz opened this issue Nov 4, 2022 · 0 comments

Comments

@gamboz
Copy link

gamboz commented Nov 4, 2022

Thank you for the nice code :)

I have a request for a workaround (or enhancement): some formatters / linters output warnings and errors on stdout (instead of stderr) even when their exit code is non-zero.

For instance, djlint

echo "<p>hi" | djlint -  --lint  2>/dev/null
H025 1:0 Tag seems to be an orphan. <p>
Linted 1 file, found 1 error.

Would it be possible, in case of errors, to dump both stderr and stdout in the error buffer?

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

1 participant