You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by tf...@apache.org on 2017/05/23 00:03:25 UTC

[03/27] lucene-solr:jira/solr-10233: SOLR-10413: Fix precommit

SOLR-10413: Fix precommit


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/eb475db9
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/eb475db9
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/eb475db9

Branch: refs/heads/jira/solr-10233
Commit: eb475db9c4811d6364000e6ebe372773b3585df0
Parents: 9e3c710
Author: Cao Manh Dat <da...@apache.org>
Authored: Fri May 19 09:43:37 2017 +0700
Committer: Cao Manh Dat <da...@apache.org>
Committed: Fri May 19 09:43:37 2017 +0700

----------------------------------------------------------------------
 .../test/org/apache/solr/handler/admin/TestCollectionAPIs.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/eb475db9/solr/core/src/test/org/apache/solr/handler/admin/TestCollectionAPIs.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/handler/admin/TestCollectionAPIs.java b/solr/core/src/test/org/apache/solr/handler/admin/TestCollectionAPIs.java
index 7b79443..9f5a246 100644
--- a/solr/core/src/test/org/apache/solr/handler/admin/TestCollectionAPIs.java
+++ b/solr/core/src/test/org/apache/solr/handler/admin/TestCollectionAPIs.java
@@ -27,7 +27,6 @@ import java.util.List;
 import java.util.Map;
 
 import org.apache.solr.SolrTestCaseJ4;
-import org.apache.solr.api.ApiException;
 import org.apache.solr.client.solrj.SolrRequest;
 import org.apache.solr.common.cloud.ZkNodeProps;
 import org.apache.solr.common.params.CollectionParams;
@@ -186,7 +185,7 @@ public class TestCollectionAPIs extends SolrTestCaseJ4 {
     };
     try {
       api.call(req, rsp);
-    } catch (ApiException e) {
+    } catch (ApiBag.ExceptionWithErrObject e) {
       throw new RuntimeException(e.getMessage() + Utils.toJSONString(e.getErrs()), e);
 
     }