Browse Source

Feed errors into the logger directly

master
Sven Slootweg 5 years ago
parent
commit
c7feaabcb4
  1. 2
      src/index.js

2
src/index.js

@ -19,7 +19,7 @@ module.exports = function(name, streams, options = {}) {
* combined stream, so we don't need `gulp-plumber` in our actual pipeline.
*/
let plumberStream = plumber(function(err) {
logger.error(err.toString());
logger.error(err);
/* Ensure that the task finishes, so as to not break `gulp.watch`. */
this.emit("end");
});

Loading…
Cancel
Save