This is an automated email from the ASF dual-hosted git repository.

aldettinger pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git


The following commit(s) were added to refs/heads/master by this push:
     new 7d1573f  Added a bug trap to catch more info in the context #1978
7d1573f is described below

commit 7d1573f97480d7e80b771647175ec6f8c7502abe
Author: aldettinger <aldettin...@gmail.com>
AuthorDate: Fri Dec 4 18:52:39 2020 +0100

    Added a bug trap to catch more info in the context #1978
---
 .../apache/camel/quarkus/component/nats/it/NatsTestResource.java    | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 
a/integration-tests/nats/src/test/java/org/apache/camel/quarkus/component/nats/it/NatsTestResource.java
 
b/integration-tests/nats/src/test/java/org/apache/camel/quarkus/component/nats/it/NatsTestResource.java
index 77e757b..ce46c76 100644
--- 
a/integration-tests/nats/src/test/java/org/apache/camel/quarkus/component/nats/it/NatsTestResource.java
+++ 
b/integration-tests/nats/src/test/java/org/apache/camel/quarkus/component/nats/it/NatsTestResource.java
@@ -77,7 +77,11 @@ public class NatsTestResource implements 
ContainerResourceLifecycleManager {
                         "--tlsverify",
                         "--tlscacert=/certs/ca.pem")
                 .waitingFor(Wait.forLogMessage(".*Server is ready.*", 1));
-        tlsAuthContainer.start();
+        try {
+            tlsAuthContainer.start();
+        } catch (Exception ex) {
+            throw new RuntimeException("An issue occurred while starting 
tlsAuthContainer: " + tlsAuthContainer.getLogs(), ex);
+        }
         String tlsAuthIp = tlsAuthContainer.getContainerIpAddress();
         Integer tlsAuthPort = tlsAuthContainer.getMappedPort(NATS_SERVER_PORT);
         String tlsAuthBrokerUrl = String.format("%s:%d", tlsAuthIp, 
tlsAuthPort);

Reply via email to