Use gutil.PluginError instead of log.
This commit is contained in:
parent
de7414b630
commit
061fce9878
3
index.js
3
index.js
|
@ -148,7 +148,8 @@ gulpSass.sync = function sync(options) {
|
|||
// Log errors nicely
|
||||
//////////////////////////////
|
||||
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