diff --git a/src/crypto/store/indexeddb-crypto-store-backend.js b/src/crypto/store/indexeddb-crypto-store-backend.js index f4b07ed5a13..1689c56796c 100644 --- a/src/crypto/store/indexeddb-crypto-store-backend.js +++ b/src/crypto/store/indexeddb-crypto-store-backend.js @@ -690,11 +690,12 @@ function promiseifyTxn(txn) { } resolve(); }; - txn.onerror = () => { + txn.onerror = (event) => { if (txn._mx_abortexception !== undefined) { reject(txn._mx_abortexception); + } else { + reject(event.target.error); } - reject(); }; txn.onabort = () => reject(txn._mx_abortexception); });