Browse Source

add original exception to new buildexception for

projectHelper#addLocationToBuildException(
PR: 25777
Obtained from: Jesse Glick


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275849 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 21 years ago
parent
commit
92ff24a7e3
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/main/org/apache/tools/ant/ProjectHelper.java

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

@@ -569,10 +569,10 @@ public class ProjectHelper {
+ ex.getLocation().toString() + ex.getLocation().toString()
+ ex.getMessage(); + ex.getMessage();
if (newLocation == null) { if (newLocation == null) {
return new BuildException(errorMessage);
return new BuildException(errorMessage, ex);
} else { } else {
return new BuildException( return new BuildException(
errorMessage, newLocation);
errorMessage, ex, newLocation);
} }
} }
} }

Loading…
Cancel
Save