Skip to content

Commit

Permalink
enh(SyncService): Throw error on save failure
Browse files Browse the repository at this point in the history
This allows to detect errors when saving via the editor API.

Signed-off-by: Jonas <jonas@freesources.org>
  • Loading branch information
mejo- authored and juliusknorr committed Oct 11, 2023
1 parent b57faa0 commit 24ada4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/services/SyncService.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ class SyncService {
this.autosave.clear()
} catch (e) {
logger.error('Failed to save document.', { error: e })
throw e
}
}

Expand Down

0 comments on commit 24ada4f

Please sign in to comment.