Skip to content

Commit ec47e01

Browse files
iyiolapeterernest-okot
authored andcommitted
fix: pass original error message into UnspecifiedError fallback for better insight
1 parent 76f9fd3 commit ec47e01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export function getError(code?: FailureReason, message?: string) {
168168
return new TransactionCancelledError(message);
169169
}
170170

171-
return new UnspecifiedError();
171+
return new UnspecifiedError(message);
172172
}
173173

174174
export function getTransactionError(transaction: Payment | Transfer) {

0 commit comments

Comments
 (0)