Skip to content

Commit cfe3d22

Browse files
committed
fix: 🐛 capture async error
1 parent a49fb92 commit cfe3d22

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/json-crdt-repo/session/EditSession.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ export class EditSession<N extends JsonNode = JsonNode<any>> {
151151
this._syncRace(() => {
152152
this.sync().then((error) => {
153153
this.onsyncerror?.(error);
154+
}).catch(error => {
155+
this.onsyncerror?.(error);
154156
});
155157
});
156158
}

0 commit comments

Comments
 (0)