gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-typescript-core] 02/03: -logging


From: gnunet
Subject: [taler-typescript-core] 02/03: -logging
Date: Tue, 14 Jan 2025 20:18:03 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository taler-typescript-core.

commit ef5bfbe69f83bc5533d7ddfe3d154087ddb4b759
Author: Florian Dold <florian@dold.me>
AuthorDate: Tue Jan 14 19:55:13 2025 +0100

    -logging
---
 packages/taler-wallet-core/src/query.ts    | 3 +++
 packages/taler-wallet-core/src/withdraw.ts | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/packages/taler-wallet-core/src/query.ts 
b/packages/taler-wallet-core/src/query.ts
index 6d11bd150..ab8ca7bc8 100644
--- 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
index d9093ec16..d20f76fe7 100644
--- 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`);

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]