From 575265833b07807a2d886ff6aa374341fd18e59f Mon Sep 17 00:00:00 2001 From: Jonas Date: Tue, 10 Oct 2023 16:33:08 +0200 Subject: [PATCH] enh(SyncService): Throw error on save failure This allows to detect errors when saving via the editor API. Signed-off-by: Jonas --- src/services/SyncService.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/services/SyncService.js b/src/services/SyncService.js index 8197ec8c2e9..bfa4c8f3c34 100644 --- a/src/services/SyncService.js +++ b/src/services/SyncService.js @@ -268,6 +268,7 @@ class SyncService { this.autosave.clear() } catch (e) { logger.error('Failed to save document.', { error: e }) + throw e } }