Browse Source

Include underlying exception message in exception. Makes it simpler to debug

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273195 13f79535-47bb-0310-9956-ffa450edef68
remotes/1776816827838153613/tmp_25f451bd36ab3145e487fcb2cd5c62c571e5b602
Conor MacNeill 24 years ago
parent
commit
270295d734
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer.java

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

@@ -182,7 +182,8 @@ public class AggregateTransformer {
XalanExecutor executor = XalanExecutor.newInstance(this);
executor.execute();
} catch (Exception e){
throw new BuildException("Errors while applying transformations", e);
throw new BuildException("Errors while applying transformations: "
+ e.getMessage(), e);
}
final long dt = System.currentTimeMillis() - t0;
task.log("Transform time: " + dt + "ms");


Loading…
Cancel
Save