aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-06-26 19:51:01 +0200
committerFlorian Dold <florian@dold.me>2023-06-26 19:51:01 +0200
commit18a3d764deb534dfa0f46981539ec4119dcc6c0f (patch)
treee6c5124ea3e55b144a7262f74030c9f4247508b6
parent5af24c1e884140d986d1d32b60703b6c3ace524c (diff)
downloadwallet-core-18a3d764deb534dfa0f46981539ec4119dcc6c0f.tar.gz
wallet-core-18a3d764deb534dfa0f46981539ec4119dcc6c0f.tar.bz2
wallet-core-18a3d764deb534dfa0f46981539ec4119dcc6c0f.zip
wallet-core: fix withdrawal error reporting
-rw-r--r--packages/taler-wallet-core/src/operations/withdraw.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts
index e3897f84e..d606e23dd 100644
--- a/packages/taler-wallet-core/src/operations/withdraw.ts
+++ b/packages/taler-wallet-core/src/operations/withdraw.ts
@@ -1615,6 +1615,19 @@ async function processWithdrawalGroupPendingReady(
notifyTransition(ws, transactionId, res.transitionInfo);
+ if (numPlanchetErrors > 0) {
+ return {
+ type: OperationAttemptResultType.Error,
+ errorDetail: makeErrorDetail(
+ TalerErrorCode.WALLET_WITHDRAWAL_GROUP_INCOMPLETE,
+ {
+ errorsPerCoin,
+ numErrors: numPlanchetErrors,
+ },
+ ),
+ };
+ }
+
return {
type: OperationAttemptResultType.Finished,
result: undefined,