commit 5c0ee81e26698293b1d9fc028a9080afb1779b60
parent c35b83cae13bb86ae3d4ea37b118473b44350317
Author: Florian Dold <florian.dold@gmail.com>
Date: Fri, 28 Aug 2020 22:05:35 +0530
logging / do not crash on error
Diffstat:
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
@@ -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,
]);