Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Commit

Permalink
fix(context/exception): return exception (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
boywithkeyboard committed Aug 31, 2023
1 parent fd46df7 commit 0184688
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export class Context<
exception(error: keyof typeof HTTP_MESSAGES, description?: string) {
const code = HTTP_MESSAGES[error]

throw new Exception(error, description, code)
return new Exception(error, description, code)
}
}

Expand Down

0 comments on commit 0184688

Please sign in to comment.