From ab71866925581825b662e86c77144141c015ee9e Mon Sep 17 00:00:00 2001 From: RealBeBetter <45707683+RealBeBetter@users.noreply.github.com> Date: Mon, 13 Nov 2023 20:07:28 +0800 Subject: [PATCH] Fix Add a specific description of ServiceInstance is empty (#1297) --- .../blocking/client/BlockingLoadBalancerClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/blocking/client/BlockingLoadBalancerClient.java b/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/blocking/client/BlockingLoadBalancerClient.java index f9463dbc1..98e0e7f9e 100644 --- a/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/blocking/client/BlockingLoadBalancerClient.java +++ b/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/blocking/client/BlockingLoadBalancerClient.java @@ -106,7 +106,7 @@ private TimedRequestContext buildRequestContext(LoadBalancerRequest deleg public T execute(String serviceId, ServiceInstance serviceInstance, LoadBalancerRequest 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 supportedLifecycleProcessors = getSupportedLifecycleProcessors(serviceId);