Skip to content

Commit

Permalink
dont swallow txn errors in crypto store
Browse files Browse the repository at this point in the history
  • Loading branch information
bwindels committed Mar 4, 2019
1 parent 03a5435 commit 755c55d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/crypto/store/indexeddb-crypto-store-backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 755c55d

Please sign in to comment.