[Build] Gracefully handle scss errors

Log errors in SCSS processing but don't crash watch process.

Fixes https://github.com/nasa/openmctweb/issues/696
This commit is contained in:
Pete Richards 2016-02-22 15:29:00 -08:00
parent b5c88e5c5c
commit db1a7e37e8

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;
}