Skip to content

Commit

Permalink
fix(build): double check for existing object property
Browse files Browse the repository at this point in the history
In case of errors in less compilation in tasks.js a proper check for an existing filename property is not given and breaks when it's undefined
  • Loading branch information
lubber-de authored May 19, 2020
1 parent 7cca9f3 commit 0d6f106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/config/tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ module.exports = {
theme,
element
;
if(error.filename.match(/theme.less/)) {
if(error && error.filename && error.filename.match(/theme.less/)) {
if (error.line == 9) {
element = regExp.variable.exec(error.message)[1];
if (element) {
Expand Down

0 comments on commit 0d6f106

Please sign in to comment.