-
Notifications
You must be signed in to change notification settings - Fork 529
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
Fix cli error throws #937
Fix cli error throws #937
Conversation
1 similar comment
@DanPurdy Thanks for flagging me here. Sorry for introducing this bug. It sounds like you've barely changed the actual interface from what I created - the only difference is that you're suppressing error output if |
No problem, It was actually a weak test of mine that wasn't flagging this. Exactly, haven't changed too much just had to go a bit of a roundabout way to achieve it. Just wanted to make sure you were aware in case it causes you issues 👍 |
With the introduction of the
max-warnings
option for config files in #857 an error was introduced where any errors detected by sass-lint would always throw an unhandled exception even if the--no-exit
/-q
option were specified.This was unintended.
The following should now be true for all CLI instances
-q
then all unhandled errors and exits should be quiet, an error code of 1 will still be present@nottrobin you may want to give this a once over too as it may affect your initial intentions with the PR you made. Unfortunately without a major version bump I don't think the exact implementation of yours would work, sorry that I missed this eventuality at the time.
<DCO 1.1 Signed-off-by: Dan Purdy [email protected]>