Commit 38fd58cd authored by Philipp Nowinski's avatar Philipp Nowinski
Browse files

[BUGFIX] fix reporting for QA task and improve error handling

parent 28a14a0c
......@@ -63,6 +63,7 @@ module.exports = class task {
}
_handleError(_errorMessage) {
this._logger.error(chalk.bgRed(chalk.whiteBright(` Task ${this.constructor.name} failed: `)));
this._logger.error(_errorMessage);
if (!settings.watcherActive) {
process.exit(1);
......
......@@ -73,7 +73,11 @@ module.exports = class Js extends Task {
`${this._path}/${this._config.directories.javascriptSrc}/**/*.js`,
'!**/*.min.js'
].concat(this._config.js.excludeFromQa));
await this._qa(files);
try {
await this._qa(files);
} catch (error) {
this._handleError(error.message);
}
resolve();
});
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment