mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 05:14:54 +00:00
fix(server): should use error instance stack (#11392)
This commit is contained in:
@@ -116,8 +116,8 @@ export class UserFriendlyError extends Error {
|
||||
|
||||
get stacktrace() {
|
||||
return this.name === 'internal_server_error'
|
||||
? ((this.cause as Error)?.stack ?? super.stack)
|
||||
: super.stack;
|
||||
? ((this.cause as Error)?.stack ?? this.stack)
|
||||
: this.stack;
|
||||
}
|
||||
|
||||
toJSON() {
|
||||
|
||||
Reference in New Issue
Block a user