Skip to content

Commit 102c9c3

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

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
@@ -91,7 +91,7 @@ export class LocalizedHttpException extends HTTPException {
9191
super(options.status ?? 500, {
9292
...options,
9393
});
94-
this.message = `<${this.errorId}> ${options.technicalMessage}`;
94+
this.message = options.technicalMessage ? `<${this.errorId}> ${options.technicalMessage}` : `<${this.errorId}>`;
9595
}
9696

9797
/**

0 commit comments

Comments
 (0)