tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spmalle...@apache.org
Subject [1/2] tinkerpop git commit: Fixed broken error message.
Date Wed, 24 Aug 2016 17:56:57 GMT
Repository: tinkerpop
Updated Branches:
  refs/heads/TINKERPOP-1278 f4c5914fc -> 137f6e776


Fixed broken error message.


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

Branch: refs/heads/TINKERPOP-1278
Commit: d1cccb67e2dc2c315e84e58a5a3de1c652ae13a3
Parents: 8ce282e
Author: Stephen Mallette <spmva@genoprime.com>
Authored: Wed Aug 24 13:56:02 2016 -0400
Committer: Stephen Mallette <spmva@genoprime.com>
Committed: Wed Aug 24 13:56:02 2016 -0400

----------------------------------------------------------------------
 .../org/apache/tinkerpop/gremlin/groovy/engine/ScriptEngines.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/d1cccb67/gremlin-groovy/src/main/java/org/apache/tinkerpop/gremlin/groovy/engine/ScriptEngines.java
----------------------------------------------------------------------
diff --git a/gremlin-groovy/src/main/java/org/apache/tinkerpop/gremlin/groovy/engine/ScriptEngines.java
b/gremlin-groovy/src/main/java/org/apache/tinkerpop/gremlin/groovy/engine/ScriptEngines.java
index 904b05e..3984dbb 100644
--- a/gremlin-groovy/src/main/java/org/apache/tinkerpop/gremlin/groovy/engine/ScriptEngines.java
+++ b/gremlin-groovy/src/main/java/org/apache/tinkerpop/gremlin/groovy/engine/ScriptEngines.java
@@ -185,7 +185,7 @@ public class ScriptEngines implements AutoCloseable {
                 scriptEngines.remove(language);
 
             final GremlinScriptEngine scriptEngine = createScriptEngine(language, imports,
staticImports, config)
-                    .orElseThrow(() -> new IllegalArgumentException("Language [%s] not
supported"));
+                    .orElseThrow(() -> new IllegalArgumentException(String.format("Language
[%s] not supported", language)));
             scriptEngines.put(language, scriptEngine);
 
             logger.info("Loaded {} ScriptEngine", language);


Mime
View raw message