feature #I69M1M 对上下文在脚本中的引用,支持自定义名称

This commit is contained in:
Tingliang Wang
2023-02-10 17:08:17 +08:00
parent 4395fab47d
commit fa64b35b5a

View File

@@ -52,7 +52,7 @@ public abstract class JSR223ScriptExecutor implements ScriptExecutor {
CompiledScript compiledScript = ((Compilable) scriptEngine).compile(convertScript(script));
compiledScriptMap.put(nodeId, compiledScript);
}catch (Exception e){
String errorMsg = StrUtil.format("script loading error for node[{}], error msg:{}", nodeId, e);
String errorMsg = StrUtil.format("script loading error for node[{}], error msg:{}", nodeId, e.getMessage());
throw new ScriptLoadException(errorMsg);
}