Skip to content

Commit

Permalink
fix: Catch and log autosave error instead of throwing
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliushaertl committed Apr 4, 2024
1 parent 344e433 commit 76bab37
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/services/SyncService.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,9 @@ class SyncService {
}

_autosave() {
return this.save({ manualSave: false })
return this.save({ manualSave: false }).catch((error) => {
logger.error('Failed to autosave document.', { error })
})
}

async close() {
Expand Down

0 comments on commit 76bab37

Please sign in to comment.