mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
don't log here as we log at a lower level, and don't fail on abort
This commit is contained in:
parent
ddb6753f8d
commit
0ca46bf2ac
@ -73,10 +73,10 @@ export function openDatabase(name, createObjectStore, version, idbFactory = wind
|
|||||||
try {
|
try {
|
||||||
await createObjectStore(db, txn, oldVersion, version);
|
await createObjectStore(db, txn, oldVersion, version);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error("Aborting upgrade transaction because migration threw error");
|
// try aborting on error, if that hasn't been done already
|
||||||
console.log(err.message);
|
try {
|
||||||
console.log(err.stack);
|
txn.abort();
|
||||||
txn.abort();
|
} catch (err) {}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
return reqAsPromise(req);
|
return reqAsPromise(req);
|
||||||
|
Loading…
Reference in New Issue
Block a user