From d59d8748ba75f7b8edfcf5d76b47666f6c7bbefb Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Mon, 6 Mar 2006 16:55:42 +0000 Subject: [PATCH] adding better diagnostics here when loading fails, like the name of the file at fault. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@383583 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/taskdefs/XmlProperty.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/XmlProperty.java b/src/main/org/apache/tools/ant/taskdefs/XmlProperty.java index dd041679b..d12bdc28a 100644 --- a/src/main/org/apache/tools/ant/taskdefs/XmlProperty.java +++ b/src/main/org/apache/tools/ant/taskdefs/XmlProperty.java @@ -281,14 +281,14 @@ public class XmlProperty extends org.apache.tools.ant.Task { if (sxe.getException() != null) { x = sxe.getException(); } - throw new BuildException(x); + throw new BuildException("Failed to load "+src,x); } catch (ParserConfigurationException pce) { // Parser with specified options can't be built throw new BuildException(pce); } catch (IOException ioe) { // I/O error - throw new BuildException(ioe); + throw new BuildException("Failed to load " + src,ioe); } }