Open
Description
The loop here https://github.com/floatdrop/gulp-plumber/blob/master/index.js#L9 removes every function named onerror
that is attached on('error').
The good news is, this gets rid of the default error handler from readable-stream
. The bad news is that it removes anything else that gets attached which has the name onerror
.
In particular, I ran into an issue running gulp-plumber with stream-combiner. dominictarr/stream-combiner#17 I think it's not the only place that this might trip someone up.
Is there any other way to find the default handler besides just the name onerror
? Maybe grabbing it based a combination of the name and index? Just something in place to make sure that only the default onerror
gets detached and nothing else.