Add status to hooks
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Alessio Davoli 2023-12-22 13:34:40 +01:00
parent 92e2ca02f8
commit aff0c03ad2
2 changed files with 2 additions and 1 deletions

View file

@ -1,6 +1,7 @@
export async function handleError({ error, event, status, message }) {
console.error(error)
return {
status,
message
};
}

View file

@ -8,8 +8,8 @@ export async function handleFetch({ request, fetch }) {
}
export async function handleError({ error, event, status, message }) {
console.error(error)
return {
status,
message
};
}