Skip to content

Commit

Permalink
fix(assert): fix assertion error message of isError (#6147)
Browse files Browse the repository at this point in the history
Co-authored-by: eryue0220 <[email protected]>
  • Loading branch information
kt3k and eryue0220 authored Oct 25, 2024
1 parent ed79df4 commit 8c9b4c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assert/is_error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function assertIsError<E extends Error = Error>(
const msgSuffix = msg ? `: ${msg}` : ".";
if (!(error instanceof Error)) {
throw new AssertionError(
`Expected "error" to be an Error object${msgSuffix}}`,
`Expected "error" to be an Error object${msgSuffix}`,
);
}
if (ErrorClass && !(error instanceof ErrorClass)) {
Expand Down

0 comments on commit 8c9b4c6

Please sign in to comment.