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

pass through 400 message from the backend to the SPA

parent 62fafa1c
No related branches found
No related tags found
4 merge requests!106if stat fails, display the error instead of immediately refreshing...,!99Dev,!89Test,!87Dev
Pipeline #14492 passed
......@@ -29,6 +29,10 @@ export class NotificationsService {
this.notify(msg.message);
return;
}
if (msg.hasOwnProperty('msg')) {
this.notify(msg.msg);
return;
}
this.msg.next(msg);
console.log(msg);
}
......
......@@ -365,6 +365,10 @@ private handleError(error: HttpErrorResponse) {
this.notifications.notify(error);
return
}
if (error.hasOwnProperty("status") && error.status == 400) {
this.notifications.notify(error);
return
}
this.notifications.notify("Your login appears to have expired. Please login again");
this.authorisationService.updateAgentContents().subscribe((v) => {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