From 5b7c857cfd65b177dda02c799e937fc9fd552bd4 Mon Sep 17 00:00:00 2001 From: jglick Date: Tue, 24 Nov 2009 16:36:07 +0000 Subject: [PATCH] [HUDSON-4941] Log which file had an XML parse error to assist in diagnosis & fix. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24022 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/XmlFile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/hudson/XmlFile.java b/core/src/main/java/hudson/XmlFile.java index 7318c16ed0..7594945024 100644 --- a/core/src/main/java/hudson/XmlFile.java +++ b/core/src/main/java/hudson/XmlFile.java @@ -147,7 +147,7 @@ public final class XmlFile { try { return xs.unmarshal(new XppReader(r),o); } catch (StreamException e) { - throw new IOException2(e); + 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