Adding stacktrace to error message in console
This commit is contained in:
parent
ebcfc069bc
commit
487b8317e7
@ -74,6 +74,7 @@ export class ErrorScene extends Phaser.Scene {
|
|||||||
*/
|
*/
|
||||||
public static showError(error: unknown, scene: ScenePlugin): void {
|
public static showError(error: unknown, scene: ScenePlugin): void {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
|
console.trace();
|
||||||
|
|
||||||
if (typeof error === "string" || error instanceof String) {
|
if (typeof error === "string" || error instanceof String) {
|
||||||
scene.start(ErrorSceneName, {
|
scene.start(ErrorSceneName, {
|
||||||
|
Loading…
Reference in New Issue
Block a user