mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-16 23:14:39 -05:00
Update p/server.js
This commit is contained in:
parent
45136a1dd8
commit
4f12bda698
1 changed files with 2 additions and 2 deletions
|
@ -141,9 +141,9 @@ const { fetch } = await import("undici")
|
|||
return; // Exit the loop if successful
|
||||
} catch (err) {
|
||||
// Log the error for this URL and continue to the next URL
|
||||
console.log(`Error fetching data from ${apiUrl}: ${err.message}`);
|
||||
res.json(`Error fetching data from ${apiUrl}: ${err.message}`);
|
||||
errors.push(err.message);
|
||||
return "";
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue