With updated deps
This commit is contained in:
12
utils/handleError.js
Executable file
12
utils/handleError.js
Executable file
@@ -0,0 +1,12 @@
|
||||
var gutil = require('gulp-util');
|
||||
var notify = require('gulp-notify');
|
||||
|
||||
module.exports = function (task) {
|
||||
return function(err) {
|
||||
gutil.log(gutil.colors.red(err));
|
||||
notify.onError(task + ' failed, check the logs..')(err);
|
||||
|
||||
// Keep gulp or browserify from hanging on this task
|
||||
this.emit('end');
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user