summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-08-28 22:05:35 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-08-28 22:05:35 +0530
commit5c0ee81e26698293b1d9fc028a9080afb1779b60 (patch)
treeb2362321ed77dcc93a2b9efb618bbbb04d464f6c
parentc35b83cae13bb86ae3d4ea37b118473b44350317 (diff)
downloadwallet-core-5c0ee81e26698293b1d9fc028a9080afb1779b60.tar.gz
wallet-core-5c0ee81e26698293b1d9fc028a9080afb1779b60.tar.bz2
wallet-core-5c0ee81e26698293b1d9fc028a9080afb1779b60.zip
logging / do not crash on error
-rw-r--r--packages/taler-wallet-core/src/operations/withdraw.ts6
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,
]);