improved error handling.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@4402 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-08-23 13:21:57 +00:00
1 parent 8f4b183527
commit ce894a99e2
1 file changed
+2
@@ -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"+