Browse Source

Last weeks changes took away helpful information about why exec failed to run; this puts it back in.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270068 13f79535-47bb-0310-9956-ffa450edef68
master
Steve Loughran 23 years ago
parent
commit
5b377d290d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/ExecTask.java

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

@@ -323,7 +323,7 @@ public class ExecTask extends Task {
runExecute(exe); runExecute(exe);
} catch (IOException e) { } catch (IOException e) {
if (failIfExecFails) { if (failIfExecFails) {
throw new BuildException("Execute failed: ",e, location);
throw new BuildException("Execute failed: "+e.toString(),e, location);
} else { } else {
log("Execute failed: "+e.toString(), Project.MSG_ERR); log("Execute failed: "+e.toString(), Project.MSG_ERR);
} }


Loading…
Cancel
Save