From 5ecf0a6717150fc8334034d241f66cb70141d990 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 21 Nov 2019 18:23:48 +0100 Subject: [PATCH] fix error path on transaction abort error --- src/matrix/storage/idb/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))); }); }