Fix Add a specific description of ServiceInstance is empty (#1297)

This commit is contained in:
RealBeBetter
2023-11-13 20:07:28 +08:00
committed by GitHub
parent 625db383f1
commit ab71866925

View File

@@ -106,7 +106,7 @@ public class BlockingLoadBalancerClient implements LoadBalancerClient {
public <T> T execute(String serviceId, ServiceInstance serviceInstance, LoadBalancerRequest<T> request)
throws IOException {
if (serviceInstance == null) {
throw new IllegalArgumentException("Service Instance cannot be null");
throw new IllegalArgumentException("Service Instance cannot be null, serviceId: " + serviceId);
}
DefaultResponse defaultResponse = new DefaultResponse(serviceInstance);
Set<LoadBalancerLifecycle> supportedLifecycleProcessors = getSupportedLifecycleProcessors(serviceId);