diff --git a/packages/pokemon/src/core/spriteCache.ts b/packages/pokemon/src/core/spriteCache.ts index b363de9fb..42a5ee9c0 100644 --- a/packages/pokemon/src/core/spriteCache.ts +++ b/packages/pokemon/src/core/spriteCache.ts @@ -32,7 +32,8 @@ export function loadSprite(speciesId: SpeciesId): SpriteCache | null { try { const raw = readFileSync(filePath, 'utf-8') return JSON.parse(raw) as SpriteCache - } catch { + } catch (e) { + console.error(`[buddy] Failed to load sprite cache for ${speciesId}:`, e) return null } } @@ -73,7 +74,8 @@ export async function fetchAndCacheSprite(speciesId: SpeciesId): Promise