From 9040c97ad7da22963802beb67345d950b3bb681c Mon Sep 17 00:00:00 2001 From: Kobe Date: Thu, 8 Aug 2024 17:35:01 +0200 Subject: [PATCH] fix: small change to trigger build --- packages/marginfi-client-v2/src/errors.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;