also log error.cause for D1

pull/179/head
Sven Sauleau 2023-02-02 16:48:49 +00:00
rodzic 07cc3cc55c
commit a122cb99af
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -14,7 +14,7 @@ export async function errorHandling(context: EventContext<Env, any, any>) {
if (sentry !== null) {
sentry.captureException(err)
}
console.error(err.stack)
console.error(err.stack, err.cause)
return internalServerError()
}
}