@epic-web/workshop-app 5.9.4 → 5.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/server/index.js
CHANGED
|
@@ -7989,6 +7989,8 @@ async function fetchDiscordPosts({ request }) {
|
|
|
7989
7989
|
async getFreshValue() {
|
|
7990
7990
|
const result = await fetch(url, {
|
|
7991
7991
|
headers: { "content-type": "application/json" }
|
|
7992
|
+
}).catch((error) => {
|
|
7993
|
+
return new Response(getErrorMessage(error), { status: 500 });
|
|
7992
7994
|
});
|
|
7993
7995
|
if (!result.ok) {
|
|
7994
7996
|
console.error(`There was an error communicating with discord`);
|