From 9e97fef81e91fe99c5b05278aad0aa62f22013f6 Mon Sep 17 00:00:00 2001 From: Nikita Koksharov Date: Thu, 18 Jan 2024 09:40:58 +0300 Subject: [PATCH] refactoring --- .../org/redisson/connection/balancer/LoadBalancerManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redisson/src/main/java/org/redisson/connection/balancer/LoadBalancerManager.java b/redisson/src/main/java/org/redisson/connection/balancer/LoadBalancerManager.java index 8b9947446..b5293c998 100644 --- a/redisson/src/main/java/org/redisson/connection/balancer/LoadBalancerManager.java +++ b/redisson/src/main/java/org/redisson/connection/balancer/LoadBalancerManager.java @@ -262,7 +262,7 @@ public class LoadBalancerManager { if (entry != null) { return slaveConnectionPool.get(command, entry); } - RedisConnectionException exception = new RedisConnectionException("Can't find entry for " + addr); + RedisConnectionException exception = new RedisConnectionException("Can't find entry for " + addr + " command " + command); CompletableFuture f = new CompletableFuture<>(); f.completeExceptionally(exception); return f; @@ -273,7 +273,7 @@ public class LoadBalancerManager { if (entry != null) { return slaveConnectionPool.get(command, entry); } - RedisConnectionException exception = new RedisConnectionException("Can't find entry for " + client); + RedisConnectionException exception = new RedisConnectionException("Can't find entry for " + client + " command " + command); CompletableFuture f = new CompletableFuture<>(); f.completeExceptionally(exception); return f;