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
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
Reference in a new issue