Skip to content
Snippets Groups Projects
Commit 18d704ea authored by Chris Hines's avatar Chris Hines
Browse files

fix up error logs

parent 484dbec2
No related branches found
No related tags found
4 merge requests!106if stat fails, display the error instead of immediately refreshing...,!99Dev,!49Dev,!46Dev
Pipeline #10247 passed
......@@ -169,21 +169,34 @@ private addUserHealth(identity,resp) {
submissionError(error: any) {
if (error.status != 0) {
if ('error' in error && 'message' in error.error) {
try {
this.notifications.notify(error.error.message);
} catch {
this.notifications.notify('Job Canceling failed');
console.error(error);
}
/*if ('error' in error && 'message' in error.error) {
this.notifications.notify(error.error.message);
} else {
this.notifications.notify('Job submission failed');
}
}*/
}
}
cancelError(error: any) {
if (error.status != 0) {
if ('error' in error && 'message' in error.error) {
try {
this.notifications.notify(error.error.message);
} else {
} catch {
this.notifications.notify('Job Canceling failed');
console.error(error);
}
/*if ('error' in error && 'message' in error.error) {
this.notifications.notify(error.error.message);
} else {
this.notifications.notify('Job Canceling failed');
}*/
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment