Files
old-csveditor/utils/handleError.js

13 lines
339 B
JavaScript
Raw Normal View History

2014-08-20 19:50:48 +02:00
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');
};
};