Browse Source

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
master
Steve Loughran 19 years ago
parent
commit
d59d8748ba
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/XmlProperty.java

+ 2
- 2
src/main/org/apache/tools/ant/taskdefs/XmlProperty.java View File

@@ -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);
}
}



Loading…
Cancel
Save