From 0ca46bf2ac621d25ab357508ea7111f5a5da5567 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 30 Aug 2021 14:52:04 +0200 Subject: [PATCH] don't log here as we log at a lower level, and don't fail on abort --- src/matrix/storage/idb/utils.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/matrix/storage/idb/utils.js b/src/matrix/storage/idb/utils.js index b4e6209d..3b9ca8bc 100644 --- a/src/matrix/storage/idb/utils.js +++ b/src/matrix/storage/idb/utils.js @@ -73,10 +73,10 @@ export function openDatabase(name, createObjectStore, version, idbFactory = wind try { await createObjectStore(db, txn, oldVersion, version); } catch (err) { - console.error("Aborting upgrade transaction because migration threw error"); - console.log(err.message); - console.log(err.stack); - txn.abort(); + // try aborting on error, if that hasn't been done already + try { + txn.abort(); + } catch (err) {} } }; return reqAsPromise(req);