Skip to content

Commit

Permalink
fix: pass original error message into UnspecifiedError fallback for b…
Browse files Browse the repository at this point in the history
…etter insight
  • Loading branch information
iyiolapeter authored and ernest-okot committed Mar 29, 2021
1 parent 76f9fd3 commit ec47e01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ec47e01

Please sign in to comment.