Skip to content

Commit

Permalink
fix(exception): add capture stack trace
Browse files Browse the repository at this point in the history
Closes: #2402
  • Loading branch information
Romakita committed Aug 11, 2023
1 parent c38adf0 commit 844c69c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/specs/exceptions/src/core/Exception.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ export class Exception extends Error {
this.name = this.#getStatusConstant();

this.setOrigin(origin);

Error.captureStackTrace(this);
}

setHeaders(headers: {[key: string]: any}) {
Expand Down

0 comments on commit 844c69c

Please sign in to comment.