aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/refresh.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-11-02 12:50:34 +0100
committerFlorian Dold <florian@dold.me>2022-11-02 12:50:34 +0100
commit87bc4a6fcd3b274f25ffe9a74196aa5f4f586b7e (patch)
treef2ce9ab1636cdc5de58ec11d74df1ba2cec71a3c /packages/taler-wallet-core/src/operations/refresh.ts
parentaab3f917c42c9c38b0d13b69380075e5a0505720 (diff)
downloadwallet-core-87bc4a6fcd3b274f25ffe9a74196aa5f4f586b7e.tar.xz
wallet-core: fix recoup issue
Diffstat (limited to 'packages/taler-wallet-core/src/operations/refresh.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/refresh.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/operations/refresh.ts b/packages/taler-wallet-core/src/operations/refresh.ts
index c7d2c320e..e18faea32 100644
--- a/packages/taler-wallet-core/src/operations/refresh.ts
+++ b/packages/taler-wallet-core/src/operations/refresh.ts
@@ -426,6 +426,16 @@ async function refreshMelt(
return;
}
+ if (resp.status === HttpStatusCode.Conflict) {
+ // Just log for better diagnostics here, error status
+ // will be handled later.
+ logger.error(
+ `melt request for ${Amounts.stringify(
+ derived.meltValueWithFee,
+ )} failed in refresh group ${refreshGroupId} due to conflict`,
+ );
+ }
+
const meltResponse = await readSuccessResponseJsonOrThrow(
resp,
codecForExchangeMeltResponse(),