Skip to content

Apache Lucene open-source search software

print the reproduce line too, for uncaught exceptions

Robert Muir013cc3e21646
diff --git a/lucene/src/test/org/apache/lucene/util/LuceneTestCase.java b/lucene/src/test/org/apache/lucene/util/LuceneTestCase.java
index 88306511d73..e6d534762b7 100644
--- a/lucene/src/test/org/apache/lucene/util/LuceneTestCase.java
+++ b/lucene/src/test/org/apache/lucene/util/LuceneTestCase.java
@@ -471,6 +471,7 @@ public abstract class LuceneTestCase extends Assert {
if (!uncaughtExceptions.isEmpty()) {
testsFailed = true;
+ reportAdditionalFailureInfo();
System.err.println("The following exceptions were thrown by threads:");
for (UncaughtExceptionEntry entry : uncaughtExceptions) {
System.err.println("*** Thread: " + entry.thread.getName() + " ***");