From 5c0ee81e26698293b1d9fc028a9080afb1779b60 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 28 Aug 2020 22:05:35 +0530 Subject: logging / do not crash on error --- packages/taler-wallet-core/src/operations/withdraw.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts index a72a70827..270735fcb 100644 --- a/packages/taler-wallet-core/src/operations/withdraw.ts +++ b/packages/taler-wallet-core/src/operations/withdraw.ts @@ -349,16 +349,16 @@ async function processPlanchetExchangeRequest( resp, codecForWithdrawResponse(), ); - - logger.trace(`got response for /withdraw`); return r; } catch (e) { + logger.trace("withdrawal request failed", e); + logger.trace(e); if (!(e instanceof OperationFailedError)) { throw e; } const errDetails = e.operationError; await ws.db.runWithWriteTransaction([Stores.planchets], async (tx) => { - let planchet = await ws.db.getIndexed(Stores.planchets.byGroupAndIndex, [ + let planchet = await tx.getIndexed(Stores.planchets.byGroupAndIndex, [ withdrawalGroupId, coinIdx, ]); -- cgit v1.2.3