From 8c9b4c6972e7eed0214f810542168ab746a306be Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Fri, 25 Oct 2024 20:04:05 +0900 Subject: [PATCH] fix(assert): fix assertion error message of isError (#6147) Co-authored-by: eryue0220 --- assert/is_error.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assert/is_error.ts b/assert/is_error.ts index 9255bda77..8f06aac4a 100644 --- a/assert/is_error.ts +++ b/assert/is_error.ts @@ -36,7 +36,7 @@ export function assertIsError( 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)) {