mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
feat(core): support one time password (#9798)
This commit is contained in:
@@ -136,8 +136,12 @@ export class UserFriendlyError extends Error {
|
||||
return;
|
||||
}
|
||||
|
||||
new Logger(context).error(
|
||||
'Internal server error',
|
||||
const logger = new Logger(context);
|
||||
const fn = this.status >= 500 ? logger.error : logger.log;
|
||||
|
||||
fn.call(
|
||||
logger,
|
||||
this.name,
|
||||
this.cause ? ((this.cause as any).stack ?? this.cause) : this.stack
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user