Handler now sane
This commit is contained in:
parent
988e07f869
commit
5cc5d09430
2 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
};
|
||||
}
|
|
@ -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
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue