mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 14:02:22 +00:00
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:
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"+
|
||||
|
||||
Reference in new issue
Block a user