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
master
Conor MacNeill 23 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); XalanExecutor executor = XalanExecutor.newInstance(this);
executor.execute(); executor.execute();
} catch (Exception e){ } 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; final long dt = System.currentTimeMillis() - t0;
task.log("Transform time: " + dt + "ms"); task.log("Transform time: " + dt + "ms");


Loading…
Cancel
Save