Skip to content

Commit ca07fb3

Browse files
authored
Merge pull request #2227 from Clemo97/main
Replace fatalError with proper error handling for non-incremental
2 parents 10411dd + 5202037 commit ca07fb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SourceKitLSP/SourceKitLSPServer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ package actor SourceKitLSPServer {
519519
syncKind = .incremental
520520
}
521521
guard syncKind == .incremental else {
522-
fatalError("non-incremental update not implemented")
522+
throw ResponseError.internalError("non-incremental update not implemented")
523523
}
524524

525525
await service.clientInitialized(InitializedNotification())

0 commit comments

Comments
 (0)