From: <st...@us...> - 2007-09-27 15:05:15
|
Revision: 5195 http://smartfrog.svn.sourceforge.net/smartfrog/?rev=5195&view=rev Author: steve_l Date: 2007-09-27 08:05:13 -0700 (Thu, 27 Sep 2007) Log Message: ----------- fix error message to match classic FnF errors Modified Paths: -------------- trunk/core/smartfrog/src/org/smartfrog/services/filesystem/FileSystem.java Modified: trunk/core/smartfrog/src/org/smartfrog/services/filesystem/FileSystem.java =================================================================== --- trunk/core/smartfrog/src/org/smartfrog/services/filesystem/FileSystem.java 2007-09-27 14:28:20 UTC (rev 5194) +++ trunk/core/smartfrog/src/org/smartfrog/services/filesystem/FileSystem.java 2007-09-27 15:05:13 UTC (rev 5195) @@ -738,7 +738,7 @@ public static StringBuffer readFile(File file, Charset encoding) throws IOException { StringBuffer buf = new StringBuffer(); if (!file.exists()) { - throw new FileNotFoundException("File not found:"+file); + throw new FileNotFoundException(file.toString()); } if (!file.canRead()) { throw new IOException(ERROR_INACCESSIBLE_FILE + file); @@ -753,7 +753,7 @@ * Read an input stream; turn it into a buffer. * After reading everything in, the input stream is closed. * @param in input stream - * @param encoding encoding to use + * @param encoding encoding to useles * @return the input stream completely loaded into memory * @throws IOException if something went wrong. */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |