Update state check error message to include failure hint.
Original Pull Request: #2013
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user