Skip to content

Commit

Permalink
code
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Sep 7, 2024
1 parent 9d675d3 commit 403e019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Error/Errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,6 @@ export class UnhandledError extends BaseError {
static from(message: string, node?: ts.Node, cause?: unknown) {
// This might be called deeply inside the parser chain
// this ensures it doesn't end up with error.cause.cause.cause...
return cause instanceof UnhandledError ? cause : new UnhandledError(message, node, cause);
return cause instanceof BaseError ? cause : new UnhandledError(message, node, cause);
}
}

0 comments on commit 403e019

Please sign in to comment.