From 21cd2fec1d694b9dddc03bf41b9642dc416ddd41 Mon Sep 17 00:00:00 2001 From: Andras Csizmadia Date: Thu, 26 Oct 2023 11:12:17 +0200 Subject: [PATCH] Added texture not found error notification --- src/phaser/core/animation_manager.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/phaser/core/animation_manager.js b/src/phaser/core/animation_manager.js index 7799669..d538bac 100644 --- a/src/phaser/core/animation_manager.js +++ b/src/phaser/core/animation_manager.js @@ -307,6 +307,7 @@ export class AnimationManager { } } else { console.warn('Cannot set frame: ' + value); + this.game.exceptionHandler(new Error('Cannot set frame'), { key: value }); } } @@ -333,6 +334,7 @@ export class AnimationManager { } } else { console.warn('Cannot set frameName: ' + value); + this.game.exceptionHandler(new Error('Cannot set frameName'), { key: value }); } } }