Use gutil.PluginError instead of log.

This commit is contained in:
Marius Craciunoiu 2015-06-09 17:34:58 -04:00
parent de7414b630
commit 061fce9878

View file

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