fix: log unknown errors in the auth error handler (#2014)

This commit is contained in:
Valentin Cocaud 2025-12-15 02:44:03 +01:00 committed by GitHub
parent 02f1264eea
commit df4316ac5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -81,6 +81,7 @@ auth.onError((err, c) => {
}
// Handle other errors
console.error('Unknown Error:', err);
return c.json(
{
code: AppErrorCode.UNKNOWN_ERROR,