From ec47e01c150ca3a7affed0df6dc3b458841c0b9e Mon Sep 17 00:00:00 2001 From: Peter-Smart Olu Date: Sun, 28 Mar 2021 09:33:07 +0100 Subject: [PATCH] fix: pass original error message into UnspecifiedError fallback for better insight --- src/errors.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/errors.ts b/src/errors.ts index abf47fb..b97024f 100644 --- a/src/errors.ts +++ b/src/errors.ts @@ -168,7 +168,7 @@ export function getError(code?: FailureReason, message?: string) { return new TransactionCancelledError(message); } - return new UnspecifiedError(); + return new UnspecifiedError(message); } export function getTransactionError(transaction: Payment | Transfer) {