Closes #267
authorrandgalt <randgalt@apache.org>
Sun, 24 Jun 2018 14:35:46 +0000 (09:35 -0500)
committerrandgalt <randgalt@apache.org>
Sun, 24 Jun 2018 14:35:46 +0000 (09:35 -0500)
CURATOR-448

changed wording a bit

curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java

index 4c66ff6..07d02e6 100644 (file)
@@ -405,7 +405,7 @@ public class CuratorFrameworkImpl implements CuratorFramework
     private void checkState()
     {
         CuratorFrameworkState state = getState();
-        Preconditions.checkState(state == CuratorFrameworkState.STARTED, "instance state must be %s before calling this method, however its %s", CuratorFrameworkState.STARTED, state);
+        Preconditions.checkState(state == CuratorFrameworkState.STARTED, "Expected state [%s] was [%s]", CuratorFrameworkState.STARTED, state);
     }
 
     @Override