mirror of https://github.com/apache/lucene.git
SOLR-10413: Fix precommit
This commit is contained in:
parent
9e3c710d0c
commit
eb475db9c4
|
@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue