Browse Source

Fix reference to painless inside expression engine (#26528)

This was a simple copy/paste bug in an earlier refactoring.
Ryan Ernst 8 years ago
parent
commit
9834081254

+ 1 - 1
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);
             ExecutableScript.Factory factory = (p) -> new ExpressionExecutableScript(expr, p);
             return context.factoryClazz.cast(factory);
             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) {
     private SearchScript.LeafFactory newSearchScript(Expression expr, SearchLookup lookup, @Nullable Map<String, Object> vars) {