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

I think this is a fix for #132

parent 2195e67c
No related branches found
No related tags found
4 merge requests!106if stat fails, display the error instead of immediately refreshing...,!99Dev,!61Test,!59Dev
Pipeline #10407 passed
......@@ -41,12 +41,16 @@ export class JobsService {
}
public getJobsError(error,identity: Identity) {
this.tsub.unsubscribe();
if (error.hasOwnProperty("error") && error.error.hasOwnProperty("message")) {
this.notifications.notify(error.error.message);
this.tsub.unsubscribe();
if (error.error.message.indexOf("Permission denied") != -1) {
this.notifications.notify("Your login appears to have expired. Please log in again");
this.authService.updateAgentContents().subscribe((_) => {return});
} else {
this.notifications.notify(error.error.message);
}
return;
}
this.tsub.unsubscribe()
this.authService.updateAgentContents().subscribe((_) => {return});
}
......
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