diff --git a/packages/marginfi-client-v2/src/errors.ts b/packages/marginfi-client-v2/src/errors.ts index bc8d0e9ed8..b72a48fb4e 100644 --- a/packages/marginfi-client-v2/src/errors.ts +++ b/packages/marginfi-client-v2/src/errors.ts @@ -37,7 +37,7 @@ const MFI_ERROR_CODE_MAP: Map = new Map(MARGINFI_IDL.errors.map( export function parseTransactionError(error: any, mfiProgramId: PublicKey) { const logs = error?.logs; const name = error?.name; - let message = error?.transactionMessage ?? error?.message; + let message = error?.transactionMessage ?? error?.message ?? error?.err; let programId = error?.programId; let code = error?.code;