diff --git a/core/src/main/java/hudson/tasks/junit/TestResult.java b/core/src/main/java/hudson/tasks/junit/TestResult.java index 8903243fc2..19c2ceb4dc 100644 --- a/core/src/main/java/hudson/tasks/junit/TestResult.java +++ b/core/src/main/java/hudson/tasks/junit/TestResult.java @@ -101,6 +101,8 @@ public final class TestResult extends MetaTabulatedResult { public void parse(File reportFile) throws IOException { try { suites.add(new SuiteResult(reportFile)); + } catch (RuntimeException e) { + throw new IOException2("Failed to read "+reportFile,e); } catch (DocumentException e) { if(!reportFile.getPath().endsWith(".xml")) throw new IOException2("Failed to read "+reportFile+"\n"+