Adding stacktrace to error message in console

This commit is contained in:
David Négrier 2021-12-03 21:58:08 +01:00
parent ebcfc069bc
commit 487b8317e7

View file

@ -74,6 +74,7 @@ export class ErrorScene extends Phaser.Scene {
*/
public static showError(error: unknown, scene: ScenePlugin): void {
console.error(error);
console.trace();
if (typeof error === "string" || error instanceof String) {
scene.start(ErrorSceneName, {