commit ef5bfbe69f83bc5533d7ddfe3d154087ddb4b759
parent 09fd184dec7b491ef18f6c5b95e79c6576c2c0da
Author: Florian Dold <florian@dold.me>
Date: Tue, 14 Jan 2025 19:55:13 +0100
-logging
Diffstat:
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/packages/taler-wallet-core/src/query.ts b/packages/taler-wallet-core/src/query.ts
@@ -110,6 +110,9 @@ function requestToPromise(req: IDBRequest): Promise<any> {
logger.warn("DB request failed, transaction aborted");
} else {
logger.error(`error in DB request: ${req.error}`);
+ if (req.error && "stack" in req.error) {
+ logger.error(`Stack: ${req.error.stack}`);
+ }
logger.error(`Request failed: ${stack.stack ?? stack}`);
}
reject(req.error);
diff --git a/packages/taler-wallet-core/src/withdraw.ts b/packages/taler-wallet-core/src/withdraw.ts
@@ -3535,6 +3535,9 @@ export async function confirmWithdrawal(
// Might be acceptable if it's a withdrawal from a
// foreign account that is not properly marked as such.
logger.warn("no account acceptable by the exchange");
+ throw Error(
+ `Exchange ${selectedExchange} not useable for withdrawal, as account ${senderWire} is not acceptable to the exchange`,
+ );
}
logger.info(`adding account ${senderWire} to know bank accounts`);