Browse Source

Improve error message

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275608 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 21 years ago
parent
commit
bc41ca3c90
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      src/main/org/apache/tools/ant/helper/ProjectHelper2.java

+ 6
- 4
src/main/org/apache/tools/ant/helper/ProjectHelper2.java View File

@@ -268,11 +268,13 @@ public class ProjectHelper2 extends ProjectHelper {
} catch (FileNotFoundException exc) {
throw new BuildException(exc);
} catch (UnsupportedEncodingException exc) {
throw new BuildException("Encoding of project file is invalid.",
exc);
throw new BuildException("Encoding of project file "
+ buildFileName + " is invalid.",
exc);
} catch (IOException exc) {
throw new BuildException("Error reading project file: "
+ exc.getMessage(), exc);
throw new BuildException("Error reading project file "
+ buildFileName + ": " + exc.getMessage(),
exc);
} finally {
if (inputStream != null) {
try {


Loading…
Cancel
Save