File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/@livestore/common/src/sync Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -132,13 +132,13 @@ export const makeClientSessionSyncProcessor = ({
132
132
)
133
133
134
134
if ( mergeResult . _tag === 'unexpected-error' ) {
135
- return yield * new SyncError ( { cause : mergeResult . message } )
135
+ return shouldNeverHappen ( 'Unexpected error in client-session-sync-processor' , mergeResult . message )
136
136
}
137
137
138
138
if ( TRACE_VERBOSE ) yield * Effect . annotateCurrentSpan ( { mergeResult : JSON . stringify ( mergeResult ) } )
139
139
140
140
if ( mergeResult . _tag !== 'advance' ) {
141
- return yield * new SyncError ( { cause : `Expected advance, got ${ mergeResult . _tag } ` } )
141
+ return shouldNeverHappen ( `Expected advance, got ${ mergeResult . _tag } ` )
142
142
}
143
143
144
144
syncStateRef . current = mergeResult . newSyncState
@@ -370,7 +370,7 @@ export interface ClientSessionSyncProcessor {
370
370
{
371
371
writeTables : Set < string >
372
372
} ,
373
- SyncError
373
+ never
374
374
>
375
375
boot : Effect . Effect < void , UnexpectedError , Scope . Scope >
376
376
/**
You can’t perform that action at this time.
0 commit comments