diff --git a/src/matrix/storage/idb/utils.js b/src/matrix/storage/idb/utils.js index 299fa894..26f16eba 100644 --- a/src/matrix/storage/idb/utils.js +++ b/src/matrix/storage/idb/utils.js @@ -35,7 +35,7 @@ export function reqAsPromise(req) { export function txnAsPromise(txn) { return new Promise((resolve, reject) => { txn.addEventListener("complete", resolve); - txn.addEventListener("abort", e => reject(wrapError(e))); + txn.addEventListener("abort", event => reject(wrapError(event.target.error))); }); }