From 5b377d290d4ff3d4557987da9b3c2dd802203cde Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Mon, 3 Dec 2001 20:24:50 +0000 Subject: [PATCH] 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 --- src/main/org/apache/tools/ant/taskdefs/ExecTask.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/ExecTask.java b/src/main/org/apache/tools/ant/taskdefs/ExecTask.java index 92e7b461b..374b2c693 100644 --- a/src/main/org/apache/tools/ant/taskdefs/ExecTask.java +++ b/src/main/org/apache/tools/ant/taskdefs/ExecTask.java @@ -323,7 +323,7 @@ public class ExecTask extends Task { runExecute(exe); } catch (IOException e) { if (failIfExecFails) { - throw new BuildException("Execute failed: ",e, location); + throw new BuildException("Execute failed: "+e.toString(),e, location); } else { log("Execute failed: "+e.toString(), Project.MSG_ERR); }