Skip to content

Commit

Permalink
build: emit errors instead of logging only
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinFrick authored and Sean committed Aug 22, 2019
1 parent c621e5d commit b530cfc
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tasks/config/tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,21 +94,22 @@ module.exports = {
element
;
if(error.filename.match(/theme.less/)) {
if(error.line == 9) {
element = regExp.variable.exec(error.message)[1];
if(element) {
if (error.line == 9) {
element = regExp.variable.exec(error.message)[1];
if (element) {
console.error('Missing theme.config value for ', element);
}
console.error('Most likely new UI was added in an update. You will need to add missing elements from theme.config.example');
}
if(error.line == 73) {
} else if (error.line == 73) {
element = regExp.element.exec(error.message)[1];
theme = regExp.theme.exec(error.message)[1];
console.error(theme + ' is not an available theme for ' + element);
} else {
console.error(error);
}
}
else {
console.log(error);
console.error(error);
}
this.emit('end');
}
Expand Down

0 comments on commit b530cfc

Please sign in to comment.