Fix reference to painless inside expression engine (#26528)

This was a simple copy/paste bug in an earlier refactoring.
This commit is contained in:
Ryan Ernst 2017-09-11 15:44:23 -07:00 committed by GitHub
parent 8ba4ff3be0
commit 9834081254
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ public class ExpressionScriptEngine extends AbstractComponent implements ScriptE
ExecutableScript.Factory factory = (p) -> new ExpressionExecutableScript(expr, p);
return context.factoryClazz.cast(factory);
}
throw new IllegalArgumentException("painless does not know how to handle context [" + context.name + "]");
throw new IllegalArgumentException("expression engine does not know how to handle script context [" + context.name + "]");
}
private SearchScript.LeafFactory newSearchScript(Expression expr, SearchLookup lookup, @Nullable Map<String, Object> vars) {