Skip to content

Commit

Permalink
fix: remove captureStackTrace
Browse files Browse the repository at this point in the history
  • Loading branch information
bingtsingw committed Jul 18, 2023
1 parent e850737 commit aa95024
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/exception/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ export class BaseException extends Error {
this.code = snakeCase(`E ${normalizedCode}`).toUpperCase();
this._messages = messages ?? normalizedCode;
this.message = this.getFirstMessage();

if (Error.captureStackTrace && typeof Error.captureStackTrace === 'function') {
Error.captureStackTrace(this, this.constructor);
}
}

public getFirstMessage(): string {
Expand Down

0 comments on commit aa95024

Please sign in to comment.