1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 01:14:38 -05:00

Update p/server.js

This commit is contained in:
Ashley 2023-11-09 05:52:52 +00:00
parent 45136a1dd8
commit 4f12bda698

View file

@ -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 "";
} }
} }