diff options
author | Florian Dold <florian@dold.me> | 2022-11-02 12:50:34 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-11-02 12:50:34 +0100 |
commit | 87bc4a6fcd3b274f25ffe9a74196aa5f4f586b7e (patch) | |
tree | f2ce9ab1636cdc5de58ec11d74df1ba2cec71a3c /packages/taler-wallet-core/src/operations/refresh.ts | |
parent | aab3f917c42c9c38b0d13b69380075e5a0505720 (diff) | |
download | wallet-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.ts | 10 |
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(), |