forked from mystiq/hydrogen-web
log when we can't abort
This commit is contained in:
parent
c1df371a14
commit
bebdaad7d4
1 changed files with 3 additions and 1 deletions
|
@ -198,7 +198,9 @@ export class Sync {
|
||||||
// the exception occurred
|
// the exception occurred
|
||||||
try {
|
try {
|
||||||
syncTxn.abort();
|
syncTxn.abort();
|
||||||
} catch (abortErr) { /* ignore when we can't abort */ }
|
} catch (abortErr) {
|
||||||
|
console.error("Could not abort sync transaction, the sync response was probably only partially written and may have put storage in a inconsistent state.", abortErr);
|
||||||
|
}
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue