summaryrefslogtreecommitdiff
path: root/packages/backend/src/misc/fastify-reply-error.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/backend/src/misc/fastify-reply-error.ts')
-rw-r--r--packages/backend/src/misc/fastify-reply-error.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/misc/fastify-reply-error.ts b/packages/backend/src/misc/fastify-reply-error.ts
index e6c4e78d2f..03109e8b96 100644
--- a/packages/backend/src/misc/fastify-reply-error.ts
+++ b/packages/backend/src/misc/fastify-reply-error.ts
@@ -8,8 +8,8 @@ export class FastifyReplyError extends Error {
public message: string;
public statusCode: number;
- constructor(statusCode: number, message: string) {
- super(message);
+ constructor(statusCode: number, message: string, cause?: unknown) {
+ super(message, cause ? { cause } : undefined);
this.message = message;
this.statusCode = statusCode;
}