Skip to content

Commit 4d065de

Browse files
committed
Replace fatalError with proper error handling for non-incremental sync
1 parent e840728 commit 4d065de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/SourceKitLSP/SourceKitLSPServer.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,8 @@ package actor SourceKitLSPServer {
519519
syncKind = .incremental
520520
}
521521
guard syncKind == .incremental else {
522-
fatalError("non-incremental update not implemented")
522+
logger.error("Received non-incremental update request, which is not implemented")
523+
throw ResponseError.internalError("non-incremental update not implemented")
523524
}
524525

525526
await service.clientInitialized(InitializedNotification())

0 commit comments

Comments
 (0)