Skip to content

Commit b0eb3ad

Browse files
pklaschkaCopilot
andauthored
Update lib/hono/LocalizedHttpException.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 102c9c3 commit b0eb3ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/hono/LocalizedHttpException.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export class LocalizedHttpException extends HTTPException {
8989
public readonly options: LocalizedHttpExceptionOptions = {},
9090
) {
9191
super(options.status ?? 500, {
92-
...options,
92+
cause: options.cause,
9393
});
9494
this.message = options.technicalMessage ? `<${this.errorId}> ${options.technicalMessage}` : `<${this.errorId}>`;
9595
}

0 commit comments

Comments
 (0)