commit dbbe1b0a6173f70d59a5a2165632170cc1d90e03
parent 718595a57264c1bea55db9c00dcd2e0182afa0a3
Author: Florian Dold <florian@dold.me>
Date: Wed, 1 Dec 2021 12:23:17 +0100
fix recoup error handling
Diffstat:
1 file 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
@@ -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}`);
});
}
}