Open phoshenwen opened 3 years ago
Could someone please explain to me the difference between using the default true Boolean for the error hander, versus using something like:
true
.pipe( plumber({ errorHandler: function (err) { console.log(err); this.emit('end'); }, }), )
which attaches the function to stream on('error') ? The only difference in the package that I can see is that the above includes this.emit('end').
this.emit('end')
Thank you.
Could someone please explain to me the difference between using the default
true
Boolean for the error hander, versus using something like:which attaches the function to stream on('error') ? The only difference in the package that I can see is that the above includes
this.emit('end')
.Thank you.