Browse Source

Merge pull request #332 from jochenberger/patch-2

FIx typo in exception message
pull/305/merge
kallestenflo 7 years ago committed by GitHub
parent
commit
f385e8e6f9
  1. 2
      json-path/src/main/java/com/jayway/jsonpath/internal/function/PathFunctionFactory.java

2
json-path/src/main/java/com/jayway/jsonpath/internal/function/PathFunctionFactory.java

@ -67,7 +67,7 @@ public class PathFunctionFactory {
public static PathFunction newFunction(String name) throws InvalidPathException {
Class functionClazz = FUNCTIONS.get(name);
if(functionClazz == null){
throw new InvalidPathException("Function with name: " + name + " does not exists.");
throw new InvalidPathException("Function with name: " + name + " does not exist.");
} else {
try {
return (PathFunction)functionClazz.newInstance();

Loading…
Cancel
Save