diff options
author | Florian Dold <florian@dold.me> | 2021-02-08 19:59:19 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-02-08 19:59:19 +0100 |
commit | 8c92499d85917693d2f87252419f0eeccd239a2b (patch) | |
tree | 569d0ee1c25d62caf0ac87131ecfa8166d12c62b /packages/taler-wallet-core/src/util | |
parent | 5ff5a686e4f15dea839b18fda9275687557d23a7 (diff) | |
download | wallet-core-8c92499d85917693d2f87252419f0eeccd239a2b.tar.xz |
idb: add first web platform tests, fix issues detected by them
Diffstat (limited to 'packages/taler-wallet-core/src/util')
-rw-r--r-- | packages/taler-wallet-core/src/util/query.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/util/query.ts b/packages/taler-wallet-core/src/util/query.ts index d0b8c2ef6..71c809ec7 100644 --- a/packages/taler-wallet-core/src/util/query.ts +++ b/packages/taler-wallet-core/src/util/query.ts @@ -106,7 +106,7 @@ function transactionToPromise(tx: IDBTransaction): Promise<void> { }; tx.onerror = () => { console.error("Transaction failed:", stack); - reject(tx.error); + reject(tx._error); }; }); } @@ -394,8 +394,8 @@ function runWithTransaction<T, StoreTypes extends Store<string, {}>>( logger.error(`${stack}`); }; tx.onabort = () => { - if (tx.error) { - logger.error("Transaction aborted with error:", tx.error); + if (tx._error) { + logger.error("Transaction aborted with error:", tx._error); } else { logger.error("Trasaction aborted (no error)"); } |