Merge pull request #697 from nasa/handle-scss-errors

[Build] Gracefully handle scss errors
This commit is contained in:
Victor Woeltjen 2016-02-22 15:34:59 -08:00
commit 87934df0d5

View File

@ -90,17 +90,15 @@ function customCompass() {
css: baseDir + 'css/',
comments: true,
bundle_exec: true
},
compassObj;
};
compassObj = compass(options);
compassObj.on('data', function (file) {
this.push(file);
}.bind(this));
compassObj.on('end', function () {
done();
});
compassObj.end(chunk);
compass(options)
.on('data', function (file) {
this.push(file);
}.bind(this))
.on('error', done)
.on('end', done)
.end(chunk);
};
return compassWrapper;
}