Merge pull request #14007 from synhershko/patch-6
Fix ensureNodesAreAvailable's error message
This commit is contained in:
commit
6be72d220f
|
@ -285,7 +285,7 @@ public class TransportClientNodesService extends AbstractComponent {
|
||||||
|
|
||||||
private void ensureNodesAreAvailable(List<DiscoveryNode> nodes) {
|
private void ensureNodesAreAvailable(List<DiscoveryNode> nodes) {
|
||||||
if (nodes.isEmpty()) {
|
if (nodes.isEmpty()) {
|
||||||
String message = String.format(Locale.ROOT, "None of the configured nodes are available: %s", nodes);
|
String message = String.format(Locale.ROOT, "None of the configured nodes are available: %s", this.listedNodes);
|
||||||
throw new NoNodeAvailableException(message);
|
throw new NoNodeAvailableException(message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue