aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-12-01 12:23:17 +0100
committerFlorian Dold <florian@dold.me>2021-12-01 12:23:17 +0100
commitdbbe1b0a6173f70d59a5a2165632170cc1d90e03 (patch)
tree433a99699e593912626953d5295cc0a22fd12a7d
parent718595a57264c1bea55db9c00dcd2e0182afa0a3 (diff)
fix recoup error handling
-rw-r--r--packages/taler-wallet-core/src/operations/recoup.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/taler-wallet-core/src/operations/recoup.ts b/packages/taler-wallet-core/src/operations/recoup.ts
index b1f46e4ba..8a4c2242a 100644
--- a/packages/taler-wallet-core/src/operations/recoup.ts
+++ b/packages/taler-wallet-core/src/operations/recoup.ts
@@ -118,8 +118,8 @@ async function putGroupAsFinished(
recoupGroup.scheduleRefreshCoins.map((x) => ({ coinPub: x })),
RefreshReason.Recoup,
);
- processRefreshGroup(ws, refreshGroupId.refreshGroupId).then((e) => {
- console.error("error while refreshing after recoup", e);
+ processRefreshGroup(ws, refreshGroupId.refreshGroupId).catch((e) => {
+ logger.error(`error while refreshing after recoup ${e}`);
});
}
}