Attach exception messages to JUnit fail() calls
[lttng-ust-java-tests.git] / lttng-ust-java-tests-log4j / src / test / java / org / lttng / ust / agent / integration / events / Log4jLegacyApiIT.java
index e6b9a7903c40e010a7dd74e686ec43b9332ce058..fe613d39d2b5aa1c123aa4e4754a3bdc6586478e 100644 (file)
@@ -184,7 +184,7 @@ public class Log4jLegacyApiIT {
             log4jAppenderField.setAccessible(true);
             return (ILttngHandler) log4jAppenderField.get(LTTngAgent.getLTTngAgent());
         } catch (ReflectiveOperationException | SecurityException e) {
-            fail();
+            fail(e.getMessage());
             return null;
         }
     }
This page took 0.023251 seconds and 4 git commands to generate.