SOLR-10413: Fix precommit

This commit is contained in:
Cao Manh Dat 2017-05-19 09:43:37 +07:00
parent 9e3c710d0c
commit eb475db9c4
1 changed files with 1 additions and 2 deletions

View File

@ -27,7 +27,6 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import org.apache.solr.SolrTestCaseJ4; import org.apache.solr.SolrTestCaseJ4;
import org.apache.solr.api.ApiException;
import org.apache.solr.client.solrj.SolrRequest; import org.apache.solr.client.solrj.SolrRequest;
import org.apache.solr.common.cloud.ZkNodeProps; import org.apache.solr.common.cloud.ZkNodeProps;
import org.apache.solr.common.params.CollectionParams; import org.apache.solr.common.params.CollectionParams;
@ -186,7 +185,7 @@ public class TestCollectionAPIs extends SolrTestCaseJ4 {
}; };
try { try {
api.call(req, rsp); api.call(req, rsp);
} catch (ApiException e) { } catch (ApiBag.ExceptionWithErrObject e) {
throw new RuntimeException(e.getMessage() + Utils.toJSONString(e.getErrs()), e); throw new RuntimeException(e.getMessage() + Utils.toJSONString(e.getErrs()), e);
} }