Browse Source

just change the exception and not make a new exception

when hiding the macro


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278163 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 20 years ago
parent
commit
8e23e6e3be
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/main/org/apache/tools/ant/taskdefs/MacroInstance.java

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

@@ -384,7 +384,8 @@ public class MacroInstance extends Task implements DynamicAttribute, TaskContain
throw ProjectHelper.addLocationToBuildException( throw ProjectHelper.addLocationToBuildException(
ex, getLocation()); ex, getLocation());
} else { } else {
throw new BuildException(ex.getMessage(), ex);
ex.setLocation(getLocation());
throw ex;
} }
} finally { } finally {
presentElements = null; presentElements = null;


Loading…
Cancel
Save