Update state check error message to include failure hint.

Original Pull Request: #2013
This commit is contained in:
Christoph Strobl
2021-03-24 13:28:49 +01:00
parent 73650cf943
commit 7207305637
2 changed files with 2 additions and 4 deletions

View File

@@ -820,9 +820,7 @@ public class LettuceConnectionFactory
AbstractRedisClient client = getNativeClient();
if (client == null) {
throw new IllegalStateException("Client not yet initialized");
}
Assert.state(client != null, "Client not yet initialized. Did you forget to call initialize the bean?");
return client;
}