gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] branch master updated: wip #8371


From: gnunet
Subject: [taler-wallet-core] branch master updated: wip #8371
Date: Wed, 21 Feb 2024 21:13:50 +0100

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

sebasjm pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new 3b5c5f4a9 wip #8371
3b5c5f4a9 is described below

commit 3b5c5f4a9d55cec9db2687f81042cedeb6f6321f
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Wed Feb 21 17:13:44 2024 -0300

    wip #8371
---
 packages/taler-wallet-core/src/wallet.ts | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/packages/taler-wallet-core/src/wallet.ts 
b/packages/taler-wallet-core/src/wallet.ts
index 17fd74178..7eac73827 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -480,9 +480,9 @@ async function dumpCoins(ws: InternalWalletState): 
Promise<CoinDumpJson> {
         ageCommitmentProof: c.ageCommitmentProof,
         spend_allocation: c.spendAllocation
           ? {
-              amount: c.spendAllocation.amount,
-              id: c.spendAllocation.id,
-            }
+            amount: c.spendAllocation.amount,
+            id: c.spendAllocation.id,
+          }
           : undefined,
       });
     }
@@ -1524,8 +1524,15 @@ export class InternalWalletState {
     const myVersionChange = async (): Promise<void> => {
       logger.info("version change requested for Taler DB");
     };
-    const myDb = await openTalerDatabase(this.idb, myVersionChange);
-    this._db = myDb;
+    try {
+      const myDb = await openTalerDatabase(this.idb, myVersionChange);
+      this._db = myDb;
+    } catch (e) {
+      logger.error("error writing to database during initialization");
+      throw TalerError.fromDetail(TalerErrorCode.WALLET_DB_UNAVAILABLE, {
+        innerError: getErrorDetailFromException(e),
+      });
+    }
   }
 
   async getTransactionState(

-- 
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]