Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(server): should use error instance stack (#11392)

fengmk2e125b2a7c0b0
diff --git a/packages/backend/server/src/base/error/def.ts b/packages/backend/server/src/base/error/def.ts
index 0f81a823f5..e7bea238e0 100644
--- a/packages/backend/server/src/base/error/def.ts
+++ b/packages/backend/server/src/base/error/def.ts
@@ -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() {