From 9834081254ef8f81b492444089423020116a9076 Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Mon, 11 Sep 2017 15:44:23 -0700 Subject: [PATCH] Fix reference to painless inside expression engine (#26528) This was a simple copy/paste bug in an earlier refactoring. --- .../elasticsearch/script/expression/ExpressionScriptEngine.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lang-expression/src/main/java/org/elasticsearch/script/expression/ExpressionScriptEngine.java b/modules/lang-expression/src/main/java/org/elasticsearch/script/expression/ExpressionScriptEngine.java index 8f3df14659a..17dc2740ee4 100644 --- a/modules/lang-expression/src/main/java/org/elasticsearch/script/expression/ExpressionScriptEngine.java +++ b/modules/lang-expression/src/main/java/org/elasticsearch/script/expression/ExpressionScriptEngine.java @@ -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 vars) {