-
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
Failed to find should be an error, not a warning #192
Comments
@MoOx Thoughts? |
Might be a good idea to support that. |
@MoOx I can't see any valid case for warning. File not found is an Error. Will change this for v9 unless you disagree. |
From what I am seeing here, it's supposed to throw postcss-import/lib/resolve-id.js Line 61 in 58ae154
|
Yeah, but the next Line 248 in 58ae154
We need to add a |
Han I didn't write this code, it's part of v8 :( Library code should never ever do process.exit. Only binary should. |
I hadn't thought of |
In the async world it's not easy. Maybe a option like onError, default to setTimeout that throw? This way by default it crash, and if people are not happy, they can catch the error. |
Not another option!!! Special-casing this error wouldn't be hard; I'll throw together a PR so you can see what I mean. |
Fixed by #247. Will be shipped in v9. |
Maybe there is a valid use-case for issuing a warning instead of an error that I don't know of. In that case I would suggest adding an option that can disable this "tolerancy" for unfound files.
The text was updated successfully, but these errors were encountered: