diff --git a/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/util/GremlinError.java b/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/util/GremlinError.java index 2633f71f02..1616c25e16 100644 --- a/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/util/GremlinError.java +++ b/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/util/GremlinError.java @@ -88,8 +88,7 @@ public static GremlinError binding(final String aliased) { } public static GremlinError parsing(final GremlinParserException error) { - final String message = String.format(error.getMessage()); - return new GremlinError(HttpResponseStatus.BAD_REQUEST, message, "MalformedQueryException"); + return new GremlinError(HttpResponseStatus.BAD_REQUEST, error.getMessage(), "MalformedQueryException"); } // execution errors