From 99e05dbac9dbcfbffb5b1aa42b479da6e9f255d8 Mon Sep 17 00:00:00 2001 From: hansthen Date: Mon, 25 Dec 2017 13:32:57 +0100 Subject: [PATCH] Fix typo in error message in PathCompiler.java Missing ' --- .../java/com/jayway/jsonpath/internal/path/PathCompiler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json-path/src/main/java/com/jayway/jsonpath/internal/path/PathCompiler.java b/json-path/src/main/java/com/jayway/jsonpath/internal/path/PathCompiler.java index 0317311e..55bfc7a6 100644 --- a/json-path/src/main/java/com/jayway/jsonpath/internal/path/PathCompiler.java +++ b/json-path/src/main/java/com/jayway/jsonpath/internal/path/PathCompiler.java @@ -117,7 +117,7 @@ public class PathCompiler { path.incrementPosition(1); if(path.currentChar() != PERIOD && path.currentChar() != OPEN_SQUARE_BRACKET){ - fail("Illegal character at position " + path.position() + " expected '.' or '["); + fail("Illegal character at position " + path.position() + " expected '.' or '['"); } PathTokenAppender appender = pathToken.getPathTokenAppender();