forked from mystiq/hydrogen-web
fix error path on transaction abort error
This commit is contained in:
parent
d073f2825b
commit
5ecf0a6717
1 changed files with 1 additions and 1 deletions
|
@ -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)));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue