Skip to content

Instantly share code, notes, and snippets.

@kohgpat
Forked from gunlinux/gulp errors handle
Last active September 9, 2015 03:33
Show Gist options
  • Save kohgpat/7f52ac174d9b2f8b6552 to your computer and use it in GitHub Desktop.
Save kohgpat/7f52ac174d9b2f8b6552 to your computer and use it in GitHub Desktop.
var notify = require('gulp-notify');
function log() {
var args = Array.prototype.slice.call(arguments);
// Send error to notification center with gulp-notify
notify.onError({
title: 'Compile Error',
message: '<%= error %>'
}).apply(this, args);
// Keep gulp from hanging on this task
this.emit('end');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment