diff --git a/gulpfile.js b/gulpfile.js index 61e8a585fa..3cf549d5f8 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -203,7 +203,7 @@ gulp.task('browserify', function () { .bundle() .on('error', function (err) { errorHandler(err); - this.emit('end'); + throw err; }) .pipe(source('bundle.js')) .pipe(buffer())