diff --git a/frontend/src/hooks.client.ts b/frontend/src/hooks.client.ts index 0cc9495..a4f7db3 100644 --- a/frontend/src/hooks.client.ts +++ b/frontend/src/hooks.client.ts @@ -1,7 +1,10 @@ export async function handleError({ error, event, status, message }) { + const errorId = crypto.randomUUID(); console.error(error) + // console.error(event) + // console.error(status) return { - status, + errorId, message }; } \ No newline at end of file diff --git a/frontend/src/hooks.server.ts b/frontend/src/hooks.server.ts index 791d9c4..dd7515c 100644 --- a/frontend/src/hooks.server.ts +++ b/frontend/src/hooks.server.ts @@ -8,9 +8,12 @@ export async function handleFetch({ request, fetch }) { } export async function handleError({ error, event, status, message }) { + const errorId = crypto.randomUUID(); console.error(error) + // console.error(event) + // console.error(status) return { - status, + errorId, message }; } \ No newline at end of file