Commit 7e8ae2ca authored by Chris Hines's avatar Chris Hines
Browse files

pass through 400 message from the backend to the SPA

parent 62fafa1c
Pipeline #14492 passed with stages
in 7 minutes and 15 seconds
......@@ -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});
}
......
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