From e945635c0df45da203baff72a5854c7c16c999ac Mon Sep 17 00:00:00 2001 From: Ondra Chaloupka Date: Wed, 27 Mar 2024 14:59:13 +0100 Subject: [PATCH] [anchor-common] clarification of verify error exception message --- packages/lib/anchor-common/src/error.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/lib/anchor-common/src/error.ts b/packages/lib/anchor-common/src/error.ts index 47b72e6..98c8c18 100644 --- a/packages/lib/anchor-common/src/error.ts +++ b/packages/lib/anchor-common/src/error.ts @@ -31,8 +31,8 @@ export function verifyError( } if (errMessage !== undefined && !anchorErrorMsg.includes(errMessage)) { throw new Error( - `Error ${errCode} with message ${anchorErrorMsg} ` + - `does not match expected errMessage ${errMessage}` + `Error code ${errCode} belongs to Anchor error message '${anchorErrorMsg}' ` + + `which does not match expected text '${errMessage}'` ) } let decNum: number