diff --git a/frontend/src/hooks.client.ts b/frontend/src/hooks.client.ts index 7583362..0cc9495 100644 --- a/frontend/src/hooks.client.ts +++ b/frontend/src/hooks.client.ts @@ -1,6 +1,7 @@ export async function handleError({ error, event, status, message }) { console.error(error) return { + status, message }; } \ No newline at end of file diff --git a/frontend/src/hooks.server.ts b/frontend/src/hooks.server.ts index 0e702e0..6588983 100644 --- a/frontend/src/hooks.server.ts +++ b/frontend/src/hooks.server.ts @@ -8,8 +8,8 @@ export async function handleFetch({ request, fetch }) { } export async function handleError({ error, event, status, message }) { - console.error(error) return { + status, message }; } \ No newline at end of file