Add logging of errors

This commit is contained in:
Alessio Davoli 2023-12-22 12:53:11 +01:00
parent 3c7bca466a
commit 536b84af2d
2 changed files with 2 additions and 0 deletions

View file

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

View file

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