diff --git a/tasks/config/tasks.js b/tasks/config/tasks.js index 3e33556312..eae6e54961 100644 --- a/tasks/config/tasks.js +++ b/tasks/config/tasks.js @@ -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) {