mirror of
https://codeberg.org/ashley/poke
synced 2026-03-03 15:23:44 +00:00
Update p/server.js
This commit is contained in:
@@ -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 "";
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user