TINKERPOP-1644 Fix exception handling.
Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/1df71c81 Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/1df71c81 Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/1df71c81 Branch: refs/heads/TINKERPOP-1642 Commit: 1df71c81e032daa9c9db6f626d99c39b37d434ce Parents: 17a72e0 Author: BrynCooke <brynco...@gmail.com> Authored: Wed Mar 8 13:26:31 2017 +0000 Committer: Stephen Mallette <sp...@genoprime.com> Committed: Fri Mar 10 11:12:36 2017 -0500 ---------------------------------------------------------------------- .../tinkerpop/gremlin/groovy/jsr223/GremlinGroovyScriptEngine.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/1df71c81/gremlin-groovy/src/main/java/org/apache/tinkerpop/gremlin/groovy/jsr223/GremlinGroovyScriptEngine.java ---------------------------------------------------------------------- diff --git a/gremlin-groovy/src/main/java/org/apache/tinkerpop/gremlin/groovy/jsr223/GremlinGroovyScriptEngine.java b/gremlin-groovy/src/main/java/org/apache/tinkerpop/gremlin/groovy/jsr223/GremlinGroovyScriptEngine.java index 2151a82..cadc3b0 100644 --- a/gremlin-groovy/src/main/java/org/apache/tinkerpop/gremlin/groovy/jsr223/GremlinGroovyScriptEngine.java +++ b/gremlin-groovy/src/main/java/org/apache/tinkerpop/gremlin/groovy/jsr223/GremlinGroovyScriptEngine.java @@ -174,7 +174,7 @@ public class GremlinGroovyScriptEngine extends GroovyScriptEngineImpl return loader.parseClass(script, generateScriptName()); } catch (CompilationFailedException e) { long finish = System.currentTimeMillis(); - log.error("Script compilation FAILED {} took {}ms {}", script, finish - start, e.getCause()); + log.error("Script compilation FAILED {} took {}ms {}", script, finish - start, e); throw e; } finally { long time = System.currentTimeMillis() - start;