From 63be99a1fa609824cb8034167e1635e531150460 Mon Sep 17 00:00:00 2001 From: "Bundyo (Kamen Bundev)" Date: Wed, 5 Aug 2020 13:13:40 +0300 Subject: [PATCH] Report errors in theme.less that are not on lines 5 or 46 --- tasks/config/tasks.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tasks/config/tasks.js b/tasks/config/tasks.js index 83f96e0abe..b8358a0256 100644 --- a/tasks/config/tasks.js +++ b/tasks/config/tasks.js @@ -100,11 +100,12 @@ module.exports = { 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 == 46) { + } else if(error.line == 46) { 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.log(error); } } else {