SOLR-5311, invalid error message

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1537978 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Noble Paul 2013-11-01 16:30:16 +00:00
parent 13da2a505a
commit be0bb552ee
1 changed files with 2 additions and 1 deletions

View File

@ -273,7 +273,8 @@ public class OverseerCollectionProcessor implements Runnable, ClosableThread {
} }
Replica replica = slice.getReplica(replicaName); Replica replica = slice.getReplica(replicaName);
if(replica == null){ if(replica == null){
throw new SolrException(ErrorCode.BAD_REQUEST, "Invalid shard name : "+shard+" in collection : "+ collectionName); throw new SolrException(ErrorCode.BAD_REQUEST, "Invalid replica : " + replicaName + " in shard/collection : "
+ shard + "/"+ collectionName);
} }
String baseUrl = replica.getStr(ZkStateReader.BASE_URL_PROP); String baseUrl = replica.getStr(ZkStateReader.BASE_URL_PROP);