Repository: reef
Updated Branches:
  refs/heads/master a8fd76c19 -> da8ce0258


[REEF-1078] Improved exceptions in `FileSystemInputPartition`

This adds a message to the `FileLoadException` thrown in
`FileSystemInputPartition.CopyFromRemote` when downloaded file in fact
does not exist.

JIRA:
  [REEF-1078](https://issues.apache.org/jira/browse/REEF-1078)

Pull Request:
  This closes #


Project: http://git-wip-us.apache.org/repos/asf/reef/repo
Commit: http://git-wip-us.apache.org/repos/asf/reef/commit/77bba973
Tree: http://git-wip-us.apache.org/repos/asf/reef/tree/77bba973
Diff: http://git-wip-us.apache.org/repos/asf/reef/diff/77bba973

Branch: refs/heads/master
Commit: 77bba973f51a4bb981b4de1c9f68dac9cbf942d5
Parents: 298eaa9
Author: Markus Weimer <[email protected]>
Authored: Mon Dec 14 11:43:26 2015 -0800
Committer: Dhruv <[email protected]>
Committed: Mon Dec 14 22:19:16 2015 -0800

----------------------------------------------------------------------
 .../PartitionedData/FileSystem/FileSystemInputPartition.cs       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/reef/blob/77bba973/lang/cs/Org.Apache.REEF.IO/PartitionedData/FileSystem/FileSystemInputPartition.cs
----------------------------------------------------------------------
diff --git 
a/lang/cs/Org.Apache.REEF.IO/PartitionedData/FileSystem/FileSystemInputPartition.cs
 
b/lang/cs/Org.Apache.REEF.IO/PartitionedData/FileSystem/FileSystemInputPartition.cs
index 3061545..f3d9764 100644
--- 
a/lang/cs/Org.Apache.REEF.IO/PartitionedData/FileSystem/FileSystemInputPartition.cs
+++ 
b/lang/cs/Org.Apache.REEF.IO/PartitionedData/FileSystem/FileSystemInputPartition.cs
@@ -121,8 +121,8 @@ namespace Org.Apache.REEF.IO.PartitionedData.FileSystem
                 else
                 {
                     string msg = string.Format
-                        (CultureInfo.CurrentCulture, "File {0} is NOT Copied 
to local {1}.", sourceUri, localFilePath);
-                    Exceptions.Throw(new FileLoadException(), msg, Logger);
+                        (CultureInfo.CurrentCulture, "The IFilesystem 
completed the copy of `{0}` to `{1}`. But the file `{1}` does not exist.", 
sourceUri, localFilePath);
+                    Exceptions.Throw(new FileLoadException(msg), msg, Logger);
                 }
             }
         }

Reply via email to