Add error logging for database connection failures and Pokémon retrieval

This commit is contained in:
vista-man committed 2025-03-25 13:59:32 +01:00
1 parent 8388831301
commit 2c79be3ef4
2 files changed
+12 -1

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@ async function fetchPokemonDataBeforeRedirect(id) {
return true;
} catch (error) {
console.error("Failed to fetch Pokémon data before redirect:", error);
console.error(`Failed to fetch Pokémon data before redirect for ID ${id}:`, error);
return false;
}
}