mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-11 11:06:25 +00:00
improved the error handling
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21858 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
112ad0089c
commit
d3b5cde166
1 file changed
+4
@@ -128,6 +128,8 @@ public final class XmlFile {
|
||||
throw new IOException2("Unable to read "+file,e);
|
||||
} catch(ConversionException e) {
|
||||
throw new IOException2("Unable to read "+file,e);
|
||||
} catch(Error e) {// mostly reflection errors
|
||||
throw new IOException2("Unable to read "+file,e);
|
||||
} finally {
|
||||
r.close();
|
||||
}
|
||||
@@ -148,6 +150,8 @@ public final class XmlFile {
|
||||
throw new IOException2(e);
|
||||
} catch(ConversionException e) {
|
||||
throw new IOException2("Unable to read "+file,e);
|
||||
} catch(Error e) {// mostly reflection errors
|
||||
throw new IOException2("Unable to read "+file,e);
|
||||
} finally {
|
||||
r.close();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user