Files
old-csveditor/utils/handleError.js
Christian Alfoni d4fd322df6 With updated deps
2014-08-20 19:50:48 +02:00

13 lines
339 B
JavaScript
Executable File

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');
};
};