Skip to content

Commit 0d6f106

Browse files
authored
fix(build): double check for existing object property
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
1 parent 7cca9f3 commit 0d6f106

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/config/tasks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ module.exports = {
105105
theme,
106106
element
107107
;
108-
if(error.filename.match(/theme.less/)) {
108+
if(error && error.filename && error.filename.match(/theme.less/)) {
109109
if (error.line == 9) {
110110
element = regExp.variable.exec(error.message)[1];
111111
if (element) {

0 commit comments

Comments
 (0)