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 2016/06/09 08:58:11 UTC
[2/2] flink git commit: [hotfix] Improve ParameterTool exception
[hotfix] Improve ParameterTool exception
This closes #2057
Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/b5e2e363
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/b5e2e363
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/b5e2e363
Branch: refs/heads/master
Commit: b5e2e3637a85bd690d2e2c0281d4c210cce1d95c
Parents: 042ad7b
Author: Robert Metzger <rm...@apache.org>
Authored: Thu Jun 9 10:56:27 2016 +0200
Committer: Robert Metzger <rm...@apache.org>
Committed: Thu Jun 9 10:56:53 2016 +0200
----------------------------------------------------------------------
.../main/java/org/apache/flink/api/java/utils/ParameterTool.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flink/blob/b5e2e363/flink-java/src/main/java/org/apache/flink/api/java/utils/ParameterTool.java
----------------------------------------------------------------------
diff --git a/flink-java/src/main/java/org/apache/flink/api/java/utils/ParameterTool.java b/flink-java/src/main/java/org/apache/flink/api/java/utils/ParameterTool.java
index 6be78e2..46c7387 100644
--- a/flink-java/src/main/java/org/apache/flink/api/java/utils/ParameterTool.java
+++ b/flink-java/src/main/java/org/apache/flink/api/java/utils/ParameterTool.java
@@ -152,7 +152,7 @@ public class ParameterTool extends ExecutionConfig.GlobalJobParameters implement
public static ParameterTool fromPropertiesFile(String path) throws IOException {
File propertiesFile = new File(path);
if(!propertiesFile.exists()) {
- throw new FileNotFoundException("Properties file "+path+" does not exist");
+ throw new FileNotFoundException("Properties file " + propertiesFile.getAbsolutePath() + " does not exist");
}
Properties props = new Properties();
FileInputStream fis = new FileInputStream(propertiesFile);