Commit e2124dd1 authored by Philipp Nowinski's avatar Philipp Nowinski

[BUGFIX] handle notification in success handler

parent f91710a1
......@@ -230,7 +230,6 @@ module.exports = class Css extends Task {
if (!this._printedError) {
errorMessage = `\n${errorMessage}`;
this._printedError = true;
throw new Error();
}
return errorMessage;
}
......@@ -239,12 +238,12 @@ module.exports = class Css extends Task {
from: _input,
syntax: scss
}).then(() => {
resolve();
}).catch(error => {
this._logger.displayNotification(
'SGC css:qa task',
'You have some linting-errors in your CSS. Please fix them!'
);
if (this._printedError) {
this._logger.displayNotification(
'SGC css:qa task',
'You have some linting-errors in your CSS. Please fix them!'
);
}
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