mirror of
https://codeberg.org/ashley/poke
synced 2026-04-09 07:27:57 +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
|
return; // Exit the loop if successful
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
// Log the error for this URL and continue to the next URL
|
// 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);
|
errors.push(err.message);
|
||||||
return "";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user