mirror of
https://github.com/Alvin-Zilverstand/pokedex.git
synced 2026-11-29 17:37:53 +01:00
Add error logging for database connection failures and Pokémon retrieval
This commit is contained in:
1 parent
8388831301
commit
2c79be3ef4
2 files changed
+12
-1
No files matched your search
+1
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user