Adding stacktrace to error message in console
This commit is contained in:
parent
ebcfc069bc
commit
487b8317e7
1 changed files with 1 additions and 0 deletions
|
@ -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, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue