mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-23 07:18:56 -05:00
fix: log 500 errors
This commit is contained in:
@@ -190,11 +190,7 @@ export const router = <C extends AuthContext, Option extends BetterAuthOptions>(
|
||||
...middlewares,
|
||||
],
|
||||
onError(e) {
|
||||
if (e instanceof APIError) {
|
||||
if (e.status === "INTERNAL_SERVER_ERROR") {
|
||||
logger.error(e);
|
||||
}
|
||||
}
|
||||
logger.error(e);
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user