fix exception message

This commit is contained in:
Simon Willnauer 2017-01-17 17:29:43 +01:00
parent 292e3a60d1
commit 69f1ffb1f8
2 changed files with 2 additions and 2 deletions

View File

@ -201,7 +201,7 @@ public final class RemoteClusterService extends AbstractComponent implements Clo
// remote_cluster_alias:index_name - for this case we fail the request. the user can easily change the cluster alias
// if that happens
throw new IllegalArgumentException("Can not filter indices; index " + index +
" exists but there is also a remote cluster named: " + remoteClusterName + " can't filter indices");
" exists but there is also a remote cluster named: " + remoteClusterName);
}
indexName = index.substring(i + 1);
clusterName = remoteClusterName;

View File

@ -146,7 +146,7 @@ public class RemoteClusterServiceTests extends ESTestCase {
"cluster_2:foo:bar", "cluster_1:test", "cluster_2:foo*", "foo"}, i -> "cluster_1:bar".equals(i)));
assertEquals("Can not filter indices; index cluster_1:bar exists but there is also a remote cluster named:" +
" cluster_1 can't filter indices", iae.getMessage());
" cluster_1", iae.getMessage());
}
}
}