-
Notifications
You must be signed in to change notification settings - Fork 528
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
Update to error codes #458
Conversation
node v0.10.x has an issue with child process it seems where if an unhandled error is detected (i.e. the ones we throw with error counts in them if not set to |
…/error-codes # Conflicts: # tests/cli.js
@bgriffith I went back and double checked this. The idea was to make sure that an exit code of 1 was thrown when the Currently even if errors are detected an exit code of 0 is thrown when set to Warnings still display with a code of 0 You can test this out yourself if you would like, go into the sass-lint directory and run then once you see the output in bash, type 👍 I would say it's good to merge if this passes code review. |
Looks good! Tests worked! |
As discussed in #221 when errors are detected from the CLI there is an inconsistent error code being thrown.
This doesn't fully solve the issues raised there as I believe we should be supporting a range of different error codes but this for now solves the main problem that's been reported.
Took the opportunity to improve comments and structure within the main index file too.
If any errors are detected now the CLI will always exit with a error code of 1 even if errors are supressed with the
--quiet
flag, warnings will still return a code of 0.@BPScott you may want to double check this meets your requirements?
DCO 1.1 Signed-off-by: Dan Purdy [email protected]