-
Notifications
You must be signed in to change notification settings - Fork 32
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
Weird behaviour for 0.5.3 #7
Comments
This is issue with this line: 1
[ [Function: onerror2], [Function], [Function: onerror] ]
[ [Function: onerror2], [Function] ]
[gulp] Plumber found unhandled error: Error: 4
[ [Function: onerror2], [Function] ]
[gulp] Plumber found unhandled error: Error: 6 Some how default |
Oh ah. I found that unusual behaviour when I made the continueOnError hack. |
@dashed seems like streams in 0.10 reattaching onerror handler inside, this patchPipe function fixes your code samples: function patchPipe(stream) {
if (stream.pipe2) {
removeDefaultHandler(stream, 'error');
stream._pipe = stream._pipe || stream.pipe;
stream.pipe = stream.pipe2;
stream.once('readable', patchPipe.bind(null, stream));
stream._plumbed = true;
}
} |
I get same output for 0.5.4:
But if it attach error listener:
I get output:
|
Closed in |
I cloned this repo and created some file:
Output:
If I use
gulp-plumber@0.4.1
using same code, I get output:The text was updated successfully, but these errors were encountered: