diff --git a/core/src/main/java/hudson/XmlFile.java b/core/src/main/java/hudson/XmlFile.java index 0f3bb50295..bf6fc23bd5 100644 --- a/core/src/main/java/hudson/XmlFile.java +++ b/core/src/main/java/hudson/XmlFile.java @@ -202,7 +202,7 @@ public final class XmlFile { throw new IOException("Failed to detect encoding of "+file); return e.encoding; } catch (SAXException e) { - throw new IOException("Failed to detect encoding of "+file,e); + throw new IOException2("Failed to detect encoding of "+file,e); } catch (ParserConfigurationException e) { throw new AssertionError(e); // impossible }