From 8ce94c22ae0dc77a1ed8cc16866b7414d0aa589d Mon Sep 17 00:00:00 2001 From: "Anders D. Johnson" Date: Sun, 26 Oct 2014 10:57:17 -0500 Subject: [PATCH] fix typo for map put exception message as array add --- .../src/main/java/com/jayway/jsonpath/internal/PathRef.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json-path/src/main/java/com/jayway/jsonpath/internal/PathRef.java b/json-path/src/main/java/com/jayway/jsonpath/internal/PathRef.java index ed48928a..e8be7057 100644 --- a/json-path/src/main/java/com/jayway/jsonpath/internal/PathRef.java +++ b/json-path/src/main/java/com/jayway/jsonpath/internal/PathRef.java @@ -100,7 +100,7 @@ public abstract class PathRef implements Comparable { if(configuration.jsonProvider().isMap(parent)){ configuration.jsonProvider().setProperty(parent, key, newVal); } else { - throw new InvalidModificationException("Invalid add operation. $ is not an array"); + throw new InvalidModificationException("Invalid put operation. $ is not a map"); } } }