[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/', css: baseDir + 'css/',
comments: true, comments: true,
bundle_exec: true bundle_exec: true
}, };
compassObj;
compassObj = compass(options); compass(options)
compassObj.on('data', function (file) { .on('data', function (file) {
this.push(file); this.push(file);
}.bind(this)); }.bind(this))
compassObj.on('end', function () { .on('error', done)
done(); .on('end', done)
}); .end(chunk);
compassObj.end(chunk);
}; };
return compassWrapper; return compassWrapper;
} }