[JW Lua] ExecuteLuaScriptItem: returning an error message

Robert Patterson robert at robertgpatterson.com
Tue Dec 20 01:27:38 CET 2022


As far as I can tell, ExecuteLuaScriptItem is working as documented
<https://www.finalelua.com/docs/rgp-lua/finenv-properties#executeluascriptitem-function>.
It is not the same behavior as a command line tool. As for the 'error'
function, it will close the Lua state of the called script, but that would
appear to be what you want anyway. Otherwise you can return a string that
will be returned in the second return value of ExecuteLuaScriptItem.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20221219/31aea6ab/attachment.html>


More information about the JWLua mailing list