ElasticContainer: Include cause in AssumptionViolatedException
Providing the cause will make failure logs more useful. Change-Id: I08e0688fd7cb5c8e367aa6cb5c987397b693d207
This commit is contained in:
@@ -34,7 +34,7 @@ public class ElasticContainer<SELF extends ElasticContainer<SELF>> extends Gener
|
|||||||
container.start();
|
container.start();
|
||||||
return container;
|
return container;
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
throw new AssumptionViolatedException("Unable to start container[might be docker related]");
|
throw new AssumptionViolatedException("Unable to start container", t);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user