Browse Source

improve error reporting in buildnumber task a little.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272167 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 23 years ago
parent
commit
742f2da5b7
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/BuildNumber.java

+ 2
- 2
src/main/org/apache/tools/ant/taskdefs/BuildNumber.java View File

@@ -174,7 +174,7 @@ public class BuildNumber
{ {
final String message = final String message =
m_file + " contains a non integer build number: " + buildNumber; m_file + " contains a non integer build number: " + buildNumber;
throw new BuildException( message );
throw new BuildException( message , nfe );
} }
} }


@@ -197,7 +197,7 @@ public class BuildNumber
} }
catch( final IOException ioe ) catch( final IOException ioe )
{ {
throw new BuildException( ioe.getMessage() );
throw new BuildException( ioe );
} }
finally finally
{ {


Loading…
Cancel
Save