-
Notifications
You must be signed in to change notification settings - Fork 24
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
Return rejected promise #2
Comments
Could this be a variation of isaacs/rimraf#72? |
I guess it is closely related, but why does broccoli tries to delete files before printing the error? |
Ah, I see the problem - the cleanup happens before the error is reported, so the cleanup error "wins". It's a bit tricky to change this without silently swallowing cleanup errors, or adding a bunch of extra error handling code. I'd like to suggest that it's actually acceptable to print the cleanup error rather than the build error. If a cleanup error happens, that's so fundamental an issue that it should usually be fixed first. I realize that this is happening a lot on Windows because of isaacs/rimraf#72, but then again perhaps one could say that Broccoli is simply broken on Windows until isaacs/rimraf#72 is fixed, and this is just one of many symptoms of this brokenness. |
But would not additional |
I've thought about this some more, and I don't think the behavior should be changed. If there's a cleanup error, then that error should be reported. |
Fair enough. The isaacs/rimraf#72 is painful. |
If the promise, returned by plugin, is rejected, broccoli fails without proper message, but with the following:
Win7 x86_64, node 0.12.5.
The text was updated successfully, but these errors were encountered: