From fc1653694fdf6608e75eaf61633293bcb358c9e4 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sun, 8 Nov 2015 06:23:21 -0800 Subject: [PATCH] add custom errorHandler to gulp-plumber --- Gulpfile.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Gulpfile.js b/Gulpfile.js index 64699fb8e8..eb3c3542ac 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -15,7 +15,11 @@ gulp.task("default", ["build"]); gulp.task("build", function () { return gulp.src(scripts) - .pipe(plumber()) + .pipe(plumber({ + errorHandler: function (err) { + gutil.log(err.stack); + } + })) .pipe(through.obj(function (file, enc, callback) { file._path = file.path; file.path = file.path.replace(/^([^\\]+)\/src/, "$1/lib");