From bebdaad7d48c3ec1ced3ac918bf8effac471db63 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 1 Oct 2020 16:23:15 +0200 Subject: [PATCH] log when we can't abort --- src/matrix/Sync.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/matrix/Sync.js b/src/matrix/Sync.js index 81c9d649..3bdf7d9d 100644 --- a/src/matrix/Sync.js +++ b/src/matrix/Sync.js @@ -198,7 +198,9 @@ export class Sync { // the exception occurred try { 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; } try {