don't swallow anything that isn't a request error

This commit is contained in:
Bruno Windels 2021-09-22 09:36:26 +02:00
parent 704d7b32da
commit a19d93dbef

View file

@ -178,8 +178,10 @@ export class Store<T> extends QueryTarget<T> {
if (err instanceof IDBRequestError) {
log.log({l: "could not write", id: this._getKey(value), e: err}, log.level.Warn);
err.preventTransactionAbort();
}
return false;
} else {
throw err;
}
}
}