bodewig 2003/11/03 07:47:30 Modified: src/main/org/apache/tools/ant/helper ProjectHelper2.java Log: Improve error message Revision Changes Path 1.35 +6 -4 ant/src/main/org/apache/tools/ant/helper/ProjectHelper2.java Index: ProjectHelper2.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/helper/ProjectHelper2.java,v retrieving revision 1.34 retrieving revision 1.35 diff -u -r1.34 -r1.35 --- ProjectHelper2.java 20 Oct 2003 14:13:40 -0000 1.34 +++ ProjectHelper2.java 3 Nov 2003 15:47:30 -0000 1.35 @@ -268,11 +268,13 @@ } 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 {
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]