Merge pull request #293 from mariusc23/master
Fix gulp watch stopping on error.
This commit is contained in:
commit
273e0a33f8
4
index.js
4
index.js
|
@ -151,7 +151,9 @@ gulpSass.sync = function sync(options) {
|
||||||
// Log errors nicely
|
// Log errors nicely
|
||||||
//////////////////////////////
|
//////////////////////////////
|
||||||
gulpSass.logError = function logError(error) {
|
gulpSass.logError = function logError(error) {
|
||||||
gutil.log(gutil.colors.red('[' + PLUGIN_NAME + '] ') + error.messageFormatted);
|
var message = new gutil.PluginError('sass', error.messageFormatted).toString();
|
||||||
|
process.stderr.write(message + '\n');
|
||||||
|
this.emit('end');
|
||||||
};
|
};
|
||||||
|
|
||||||
//////////////////////////////
|
//////////////////////////////
|
||||||
|
|
Loading…
Reference in a new issue