hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r409451 - in /lucene/hadoop/trunk: CHANGES.txt src/java/org/apache/hadoop/fs/LocalFileSystem.java
Date Thu, 25 May 2006 20:02:40 GMT
Author: cutting
Date: Thu May 25 13:02:40 2006
New Revision: 409451

URL: http://svn.apache.org/viewvc?rev=409451&view=rev
Log:
HADOOP-325.  Improve the FileNotFound exceptions thrown by LocalFileSystem to include the
name of the file.  Contributed by Benjamin Reed.

Modified:
    lucene/hadoop/trunk/CHANGES.txt
    lucene/hadoop/trunk/src/java/org/apache/hadoop/fs/LocalFileSystem.java

Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?rev=409451&r1=409450&r2=409451&view=diff
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Thu May 25 13:02:40 2006
@@ -65,6 +65,10 @@
 17. HADOOP-251.  Fix task processes to be tolerant of failed progress
     reports to their parent process.  (omalley via cutting)
 
+18. HADOOP-325.  Improve the FileNotFound exceptions thrown by
+    LocalFileSystem to include the name of the file.
+    (Benjamin Reed via cutting)
+
 
 Release 0.2.1 - 2006-05-12
 

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/fs/LocalFileSystem.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/fs/LocalFileSystem.java?rev=409451&r1=409450&r2=409451&view=diff
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/fs/LocalFileSystem.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/fs/LocalFileSystem.java Thu May 25 13:02:40
2006
@@ -120,7 +120,7 @@
     
     public FSInputStream openRaw(Path f) throws IOException {
         if (! exists(f)) {
-            throw new FileNotFoundException(toString());
+            throw new FileNotFoundException(f.toString());
         }
         return new LocalFSFileInputStream(f);
     }



Mime
View raw message