improve success and fail messages, re-generated api reports

Signed-off-by: Hasan Ozdemir <21654050+nodify-at@users.noreply.github.com>
This commit is contained in:
Hasan Ozdemir
2021-12-17 11:38:19 +01:00
parent bc3695fe7a
commit 047d92db5e
2 changed files with 4 additions and 4 deletions
@@ -186,13 +186,13 @@ const generatedColumns: TableColumn[] = [
try {
await row.onRestartClick();
alertApi.post({
message: 'Jenkins re-build has been successfully executed',
message: 'Jenkins re-build has successfully executed',
severity: 'success',
});
} catch (e) {
if (e instanceof ResponseError) {
alertApi.post({
message: `Jenkins re-build has been failed. Error: ${e.message}`,
message: `Jenkins re-build has failed. Error: ${e.message}`,
severity: 'error',
});
}