mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 13:08:29 +00:00
c1137b3b78
Modified ScriptEngineService to pass in a CompiledScript object with newly added name and type member variables. This can in turn be used to give better scripting error messages with the type of script used and the name of the script. Required slight modifications to the caching mechanism. Note that this does not enforce good behavior in that plugins will have to write exceptions that also output the name of the script in order to be effective. There was no way to wrap the script methods in a try/catch block properly further up the chain because many have script-like objects passed back that can be run at a later time. closes #6653 closes #11449