Skip to content

Commit

Permalink
[anchor-common] clarification of verify error exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
ochaloup committed Mar 27, 2024
1 parent a8d03e5 commit e945635
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/lib/anchor-common/src/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e945635

Please sign in to comment.