| commit | 7b54b1500f5a18c54de12cc25211c66d11a08fa0 | [log] [tgz] |
|---|---|---|
| author | David Pursehouse <dpursehouse@collab.net> | Fri May 25 16:03:52 2018 +0900 |
| committer | David Pursehouse <dpursehouse@collab.net> | Mon May 28 14:30:23 2018 +0900 |
| tree | a1d8c6c14b2d0fd25460cdee6c9a312cdec05a1e | |
| parent | 0c12bd06d32e7862fc95a9f5d3d53f4a300c8965 [diff] |
ElasticContainer: Include cause in AssumptionViolatedException Providing the cause will make failure logs more useful. Change-Id: I08e0688fd7cb5c8e367aa6cb5c987397b693d207
diff --git a/gerrit-elasticsearch/src/main/java/com/google/gerrit/elasticsearch/testing/ElasticContainer.java b/gerrit-elasticsearch/src/main/java/com/google/gerrit/elasticsearch/testing/ElasticContainer.java index 56b83be..c87ab9d 100644 --- a/gerrit-elasticsearch/src/main/java/com/google/gerrit/elasticsearch/testing/ElasticContainer.java +++ b/gerrit-elasticsearch/src/main/java/com/google/gerrit/elasticsearch/testing/ElasticContainer.java
@@ -34,7 +34,7 @@ container.start(); return container; } catch (Throwable t) { - throw new AssumptionViolatedException("Unable to start container[might be docker related]"); + throw new AssumptionViolatedException("Unable to start container", t); } }