taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit f47eb200e2146651a54e4943dfb7ae17ddb07d15
parent 9050cdafba1920237212a6a26a94cfcc199896a4
Author: Florian Dold <florian@dold.me>
Date:   Wed,  7 May 2025 12:38:52 +0200

idb-bridge: improve error reporting

Diffstat:
Mpackages/idb-bridge/src/bridge-idb.ts | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/packages/idb-bridge/src/bridge-idb.ts b/packages/idb-bridge/src/bridge-idb.ts @@ -2280,7 +2280,9 @@ export class BridgeIDBObjectStore implements IDBObjectStore { name, ); if (!indexMeta) { - throw new NotFoundError(); + throw new NotFoundError( + `IndexedDB index '${name}' not found (no metadata available)`, + ); } const newIndex = new BridgeIDBIndex(this, name, indexMeta); this._indexHandlesCache.set(name, newIndex); @@ -2672,7 +2674,7 @@ export class BridgeIDBTransaction } if (!this._scope.has(name)) { - throw new NotFoundError(); + throw new NotFoundError(`object store ${name} not in transaction scope`); } const objectStore = this._objectStoresCache.get(name);