diff --git a/apps/website/src/util/fetchNode.ts b/apps/website/src/util/fetchNode.ts index 82fe4bcc4..bb73d58d6 100644 --- a/apps/website/src/util/fetchNode.ts +++ b/apps/website/src/util/fetchNode.ts @@ -25,7 +25,8 @@ export async function fetchNode({ ); return JSON.parse(fileContent); - } catch { + } catch (error_) { + console.error(error_); notFound(); } } @@ -38,7 +39,8 @@ export async function fetchNode({ ); return await fileContent.json(); - } catch { + } catch (error_) { + console.error(error_); notFound(); } } diff --git a/apps/website/src/util/fetchSitemap.ts b/apps/website/src/util/fetchSitemap.ts index 77df20bc4..9f8023d33 100644 --- a/apps/website/src/util/fetchSitemap.ts +++ b/apps/website/src/util/fetchSitemap.ts @@ -18,7 +18,8 @@ export async function fetchSitemap({ ); return JSON.parse(fileContent); - } catch { + } catch (error_) { + console.error(error_); notFound(); } } @@ -31,7 +32,8 @@ export async function fetchSitemap({ ); return await fileContent.json(); - } catch { + } catch (error_) { + console.error(error_); notFound(); } }