From 7627a2bda261b70e5ff572db1b8f40adcdc8cf96 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 29 Sep 2020 10:53:02 +0200 Subject: [PATCH] add comment --- src/matrix/storage/idb/Store.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/matrix/storage/idb/Store.js b/src/matrix/storage/idb/Store.js index 9204999d..dbe85b2b 100644 --- a/src/matrix/storage/idb/Store.js +++ b/src/matrix/storage/idb/Store.js @@ -129,6 +129,8 @@ export class Store extends QueryTarget { async add(value) { try { + // this will catch both the sync error already mapped + // in the QueryTargetWrapper above, and also the async request errors, which are still DOMException's return await reqAsPromise(this._idbStore.add(value)); } catch(err) { const originalErr = err.cause;