mirror of
https://github.com/Alvin-Zilverstand/pokedex.git
synced 2026-03-06 13:25:11 +01:00
Add error logging for database connection failures and Pokémon retrieval
This commit is contained in:
@@ -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