SOLR-4072: Error message is incorrect for linkconfig in ZkCLI.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1565059 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2014-02-06 03:07:16 +00:00
parent 59b660aef1
commit 65ba982fdf
2 changed files with 4 additions and 1 deletions

View File

@ -276,6 +276,9 @@ Bug Fixes
* SOLR-5678: SolrZkClient should throw a SolrException when connect times out
rather than a RuntimeException. (Karl Wright, Anshum Gupta, Mark Miller)
* SOLR-4072: Error message is incorrect for linkconfig in ZkCLI.
(Vamsee Yarlagadda, Adam Hahn, via Mark Miller)
Optimizations
----------------------

View File

@ -222,7 +222,7 @@ public class ZkCLI {
ZkController.downloadConfigDir(zkClient, confName, new File(confDir));
} else if (line.getOptionValue(CMD).equals(LINKCONFIG)) {
if (!line.hasOption(COLLECTION) || !line.hasOption(CONFNAME)) {
System.out.println("-" + CONFDIR + " and -" + CONFNAME
System.out.println("-" + COLLECTION + " and -" + CONFNAME
+ " are required for " + LINKCONFIG);
System.exit(1);
}