diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-08-28 22:05:35 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-08-28 22:05:35 +0530 |
commit | 5c0ee81e26698293b1d9fc028a9080afb1779b60 (patch) | |
tree | b2362321ed77dcc93a2b9efb618bbbb04d464f6c | |
parent | c35b83cae13bb86ae3d4ea37b118473b44350317 (diff) |
logging / do not crash on error
-rw-r--r-- | packages/taler-wallet-core/src/operations/withdraw.ts | 6 |
1 files 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, ]); |