api: Add grpc-okhttp to suggestions if no server is available

Since 3b61799 OkHttp can support Grpc.newServerBuilderForPort().
This commit is contained in:
Eric Anderson 2023-09-08 16:13:39 -07:00
parent 6335e0be3e
commit b839b38b83
1 changed files with 2 additions and 1 deletions

View File

@ -138,7 +138,8 @@ public final class ServerRegistry {
List<ServerProvider> providers = providers();
if (providers.isEmpty()) {
throw new ProviderNotFoundException("No functional server found. "
+ "Try adding a dependency on the grpc-netty or grpc-netty-shaded artifact");
+ "Try adding a dependency on the grpc-netty, grpc-netty-shaded, or grpc-okhttp "
+ "artifact");
}
StringBuilder error = new StringBuilder();
for (ServerProvider provider : providers()) {