Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hpc-team
strudelv2_spa
Commits
7e8ae2ca
Commit
7e8ae2ca
authored
Jan 08, 2021
by
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
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/app/notifications.service.ts
View file @
7e8ae2ca
...
...
@@ -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
);
}
...
...
src/app/tes.service.ts
View file @
7e8ae2ca
...
...
@@ -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
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment