wallet-core: fix withdrawal error reporting

This commit is contained in:
Florian Dold 2023-06-26 19:51:01 +02:00
parent 5af24c1e88
commit 18a3d764de
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -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,