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

lessc writes error output to stdout #2457

Closed
ianthehenry opened this issue Feb 18, 2015 · 0 comments
Closed

lessc writes error output to stdout #2457

ianthehenry opened this issue Feb 18, 2015 · 0 comments
Labels

Comments

@ianthehenry
Copy link

When something goes wrong, lessc writes to stdout, not to stderr

For a simple repro, you can just invoke lessc | wc -c. Should be zero, as the error message should be written to stderr.

(This issue originally included that lessc wasn't setting an erroneous exit code. It seems I was testing it wrong, and lessc does do the right thing there. Not sure what I did...)

Okay, edit 3: some errors don't correctly set an exit code. Here's one example:

$ node_modules/.bin/lessc --include-path
include-path option requires a parameter
$ echo $?
0

But others do. An interesting roulette when using lessc from build scripts.

@ianthehenry ianthehenry changed the title lessc doesn't set an exit code lessc writes error output to stdout Feb 18, 2015
@lukeapage lukeapage added the bug label Feb 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants