Handler now sane

This commit is contained in:
Alessio Davoli 2023-12-22 15:51:36 +01:00
parent 988e07f869
commit 5cc5d09430
2 changed files with 8 additions and 2 deletions

View file

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

View file

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