mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-02-07 01:58:18 +01:00
don't swallow anything that isn't a request error
This commit is contained in:
parent
704d7b32da
commit
a19d93dbef
@ -178,8 +178,10 @@ export class Store<T> extends QueryTarget<T> {
|
|||||||
if (err instanceof IDBRequestError) {
|
if (err instanceof IDBRequestError) {
|
||||||
log.log({l: "could not write", id: this._getKey(value), e: err}, log.level.Warn);
|
log.log({l: "could not write", id: this._getKey(value), e: err}, log.level.Warn);
|
||||||
err.preventTransactionAbort();
|
err.preventTransactionAbort();
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
|
} else {
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user