From 6c59ed27cef0e5a7eac3057dc05c9bbd26907a15 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Thu, 4 Apr 2024 09:22:12 -0400 Subject: [PATCH] Give more detailed error when move animation fails to load --- src/data/battle-anims.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/battle-anims.ts b/src/data/battle-anims.ts index 81a8da36c99..a3af386d097 100644 --- a/src/data/battle-anims.ts +++ b/src/data/battle-anims.ts @@ -459,7 +459,7 @@ export function initMoveAnim(move: Moves): Promise { fetch(`./battle-anims/${Moves[move].toLowerCase().replace(/\_/g, '-')}.json`) .then(response => { if (!response.ok) { - console.error(response.statusText); + console.error(response.status, response.statusText); if (move !== defaultMoveAnim) fetchAnimAndResolve(defaultMoveAnim); else