Exit scene acess denied detected (#1369)
* Add auth token user to get right in admin and check if user have right Signed-off-by: Gregoire Parant <g.parant@thecodingmachine.com> * Update error show Signed-off-by: Gregoire Parant <g.parant@thecodingmachine.com>
This commit is contained in:
parent
f7daf16ac5
commit
02a21209ec
7 changed files with 67 additions and 8 deletions
|
@ -90,7 +90,11 @@ export class ErrorScene extends Phaser.Scene {
|
|||
// Axios HTTP error
|
||||
// client received an error response (5xx, 4xx)
|
||||
scene.start(ErrorSceneName, {
|
||||
title: "HTTP " + error.response.status + " - " + error.response.statusText,
|
||||
title:
|
||||
"HTTP " +
|
||||
error.response.status +
|
||||
" - " +
|
||||
(error.response.data ? error.response.data : error.response.statusText),
|
||||
subTitle: "An error occurred while accessing URL:",
|
||||
message: error.response.config.url,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue