[JW Lua] ExecuteLuaScriptItem: returning an error message
Robert Patterson
robert at robertgpatterson.com
Mon Dec 19 17:42:57 CET 2022
Have you tried using the error function to return your error?
On Mon, Dec 19, 2022 at 9:50 AM Jan Angermüller <jan at angermueller.com>
wrote:
> Robert et al,
>
> finenv.ExecuteLuaScriptItem can return up to three values.
>
> But how can I force a script to return a certain error?
> I thought that a simpe "return false" or "return true" at the end of the
> executed script could influence one of the three values.
> But that didn't work. I always get the return values "true","nil","nil".
>
> It's more that I only want to return a true or false - there is no real
> error.
>
> Any ideas?
>
> Tested with v0.65 on Windows/Finale 27.
>
> Jan
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20221219/1abcc7cf/attachment.htm>
More information about the JWLua
mailing list