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 @@ -125,13 +125,13 @@ export const makeClientSessionSyncProcessor = ({
125
125
)
126
126
127
127
if ( mergeResult . _tag === 'unexpected-error' ) {
128
- return yield * new SyncError ( { cause : mergeResult . message } )
128
+ return shouldNeverHappen ( 'Unexpected error in client-session-sync-processor' , mergeResult . message )
129
129
}
130
130
131
131
if ( TRACE_VERBOSE ) yield * Effect . annotateCurrentSpan ( { mergeResult : JSON . stringify ( mergeResult ) } )
132
132
133
133
if ( mergeResult . _tag !== 'advance' ) {
134
- return yield * new SyncError ( { cause : `Expected advance, got ${ mergeResult . _tag } ` } )
134
+ return shouldNeverHappen ( `Expected advance, got ${ mergeResult . _tag } ` )
135
135
}
136
136
137
137
syncStateRef . current = mergeResult . newSyncState
@@ -355,7 +355,7 @@ export interface ClientSessionSyncProcessor {
355
355
{
356
356
writeTables : Set < string >
357
357
} ,
358
- SyncError
358
+ never
359
359
>
360
360
boot : Effect . Effect < void , UnexpectedError , Scope . Scope >
361
361
/**
You can’t perform that action at this time.
0 commit comments