We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f458336 commit 3431a7cCopy full SHA for 3431a7c
src/packages/project/sync/server.ts
@@ -393,7 +393,15 @@ class SyncTableChannel {
393
return;
394
}
395
this.log("check_if_should_save_or_close: save to disk if possible");
396
- await this.save_if_possible();
+ try {
397
+ await this.save_if_possible();
398
+ } catch (err) {
399
+ // the name "save if possible" suggests this should be non-fatal.
400
+ this.log(
401
+ "check_if_should_save_or_close: WARNING: unable to save -- ",
402
+ err,
403
+ );
404
+ }
405
const { n } = this.num_connections ?? {};
406
this.log("check_if_should_save_or_close", { n });
407
if (!this.persistent && n === 0) {
0 commit comments