floatdrop / gulp-plumber

Fixing Node pipes
MIT License
806 stars 32 forks source link

Does not handle gulp.src errors? #49

Closed iDVB closed 7 years ago

iDVB commented 8 years ago

Running this code simply results in a standard gulp error...

gulp.src('./config1.json')
    .pipe($.plumber(function() {
      console.log('There was an issue');
      this.emit('end');
    }));

... Error: File not found with singular glob

Not sure if I'm using correctly, but I had figured that plumber would pick this up as well.

floatdrop commented 7 years ago

gulp-plumber attaches error handler to all underlying streams, so gulp-src still should be handled manually (or some streams concatenation magic should be applied).