You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by rm...@apache.org on 2014/06/12 23:03:56 UTC

[5/9] git commit: FS.get(): Add URI causing exception to message.

FS.get(): Add URI causing exception to message.


Project: http://git-wip-us.apache.org/repos/asf/incubator-flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-flink/commit/51b793fd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-flink/tree/51b793fd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-flink/diff/51b793fd

Branch: refs/heads/release-0.5.1
Commit: 51b793fdcf14cd0263563811be43c82290c337c6
Parents: f403970
Author: zentol <s....@web.de>
Authored: Thu Jun 12 13:10:40 2014 +0200
Committer: Robert Metzger <rm...@apache.org>
Committed: Thu Jun 12 20:48:00 2014 +0200

----------------------------------------------------------------------
 .../src/main/java/eu/stratosphere/core/fs/FileSystem.java      | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/51b793fd/stratosphere-core/src/main/java/eu/stratosphere/core/fs/FileSystem.java
----------------------------------------------------------------------
diff --git a/stratosphere-core/src/main/java/eu/stratosphere/core/fs/FileSystem.java b/stratosphere-core/src/main/java/eu/stratosphere/core/fs/FileSystem.java
index e6d187e..007a74f 100644
--- a/stratosphere-core/src/main/java/eu/stratosphere/core/fs/FileSystem.java
+++ b/stratosphere-core/src/main/java/eu/stratosphere/core/fs/FileSystem.java
@@ -200,7 +200,8 @@ public abstract class FileSystem {
 				}
 				catch (URISyntaxException e) {
 					// we tried to repair it, but could not. report the scheme error
-					throw new IOException("FileSystem: Scheme is null. file:// or hdfs:// are example schemes.");
+					throw new IOException("FileSystem: Scheme is null. file:// or hdfs:// are example schemes. "
+							+ "Failed for " + uri.toString() + ".");
 				}
 			}
 
@@ -213,7 +214,8 @@ public abstract class FileSystem {
 
 			// Try to create a new file system
 			if (!FSDIRECTORY.containsKey(uri.getScheme())) {
-				throw new IOException("No file system found with scheme " + uri.getScheme());
+				throw new IOException("No file system found with scheme " + uri.getScheme()
+				+ ". Failed for " + uri.toString() + ".");
 			}
 
 			Class<? extends FileSystem> fsClass = null;