More details in the error
This commit is contained in:
parent
8b21ba5383
commit
ebcfc069bc
@ -102,7 +102,12 @@ export class ErrorScene extends Phaser.Scene {
|
|||||||
} else if (Axios.isAxiosError(error)) {
|
} else if (Axios.isAxiosError(error)) {
|
||||||
// Axios HTTP error
|
// Axios HTTP error
|
||||||
// client never received a response, or request never left
|
// client never received a response, or request never left
|
||||||
console.error("Axios error. No full HTTP response received. Request:", error.request);
|
console.error(
|
||||||
|
"Axios error. No full HTTP response received. Request to URL:",
|
||||||
|
error.request?.responseURL,
|
||||||
|
" - Details: ",
|
||||||
|
error.request?.details
|
||||||
|
);
|
||||||
scene.start(ErrorSceneName, {
|
scene.start(ErrorSceneName, {
|
||||||
title: "Network error",
|
title: "Network error",
|
||||||
subTitle: error.message,
|
subTitle: error.message,
|
||||||
|
Loading…
Reference in New Issue
Block a user