-
Notifications
You must be signed in to change notification settings - Fork 115
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
Syntax error formatting in the console #264
Comments
Not sure. @ai We are currently sending errors back via |
if (err.name === 'CssSyntaxError') err.message + '\n\n' + err.showSourceCode() + '\n' or don't add it to result.warn and pass it through. |
@michael-ciniawsky Thanks for chiming in, I knew there was probably a better way, but didn't have time to look. I would consider erroring for syntax errors in the next major release; for now, we need to still warn to keep backwards compatibility. PR welcome to add |
@RyanZim |
@ai I will definitely throw an error in the next major, but I thought changing the |
@RyanZim I take it it's been resolved. Thanks! |
Hi, I'm using this plugin in Gulp. When there is an error in the main file (not imported) it displays in a code frame like this:
However, if the error is from an imported file I get this (for example):
Is there a way I can get the pretty-printed error message instead? Thanks
The text was updated successfully, but these errors were encountered: