diff --git a/src/main/org/apache/tools/ant/taskdefs/CopyPath.java b/src/main/org/apache/tools/ant/taskdefs/CopyPath.java index d62a2a12e..46e33fdfb 100644 --- a/src/main/org/apache/tools/ant/taskdefs/CopyPath.java +++ b/src/main/org/apache/tools/ant/taskdefs/CopyPath.java @@ -173,10 +173,10 @@ public class CopyPath extends Task { preserveLastModified, null, null, getProject()); } catch (IOException ioe) { - String msg = "Failed to copy " + - sourceFile + - " to " + - destFile + String msg = "Failed to copy " + + sourceFile + + " to " + + destFile + " due to " + ioe.getMessage(); if (destFile.exists() && !destFile.delete()) { msg += " and I couldn't delete the corrupt " + destFile;