<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Thank you for your suggestions, Robert.<br>
I hadn't tried yet, because I didn't know if a "real error" had any
side effects.<br>
I thought that a simple "return 0" (1, true, false, whatever) at the
end of the program could handle this as in the old DOS/UNIX tools.<br>
<br>
Jan<br>
<br>
<br>
<div class="moz-cite-prefix">Am 19.12.2022 um 17:48 schrieb Robert
Patterson:<br>
</div>
<blockquote type="cite"
cite="mid:CAACncetDvqoRPAvLDH=Gg2tyPkkpLHSfhK1LUtCjHn=m32G16Q@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Another option would be simply to return the error
message when there's an error. Then you could distinguish
between your error messages and Lua runtime error messages.
(Because the success boolean would be true but there would also
be a message.)<br>
</div>
</blockquote>
<br>
<div class="moz-cite-prefix">Am 19.12.2022 um 17:42 schrieb Robert
Patterson:<br>
</div>
<blockquote type="cite"
cite="mid:CAACncetJdK_WQgKc+dh2PziEpO=0tKKWJF_ZUTwPpY__hH5kyw@mail.gmail.com">Have
you tried using the error function to return your error?</blockquote>
<blockquote type="cite"
cite="mid:CAACncetDvqoRPAvLDH=Gg2tyPkkpLHSfhK1LUtCjHn=m32G16Q@mail.gmail.com">
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, Dec 19, 2022 at 9:50
AM Jan Angermüller <<a href="mailto:jan@angermueller.com"
moz-do-not-send="true" class="moz-txt-link-freetext">jan@angermueller.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div> Robert et al,<br>
<br>
finenv.ExecuteLuaScriptItem can return up to three values.<br>
<br>
But how can I force a script to return a certain error?<br>
I thought that a simpe "return false" or "return true" at
the end of the executed script could influence one of the
three values. <br>
But that didn't work. I always get the return values
"true","nil","nil".<br>
<br>
It's more that I only want to return a true or false - there
is no real error.<br>
<br>
Any ideas?<br>
<br>
Tested with v0.65 on Windows/Finale 27.<br>
<br>
Jan<br>
</div>
_______________________________________________<br>
JWLua mailing list<br>
<a href="mailto:JWLua@jwmusic.nu" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">JWLua@jwmusic.nu</a><br>
<a href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu"
rel="noreferrer" target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a><br>
</blockquote>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
JWLua mailing list
<a class="moz-txt-link-abbreviated" href="mailto:JWLua@jwmusic.nu">JWLua@jwmusic.nu</a>
<a class="moz-txt-link-freetext" href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Jan Angermüller
Orchideenstieg 13
22297 Hamburg
Tel. 040 - 28 94 84 82
Mobil 0173 - 99 33 904
<a class="moz-txt-link-abbreviated" href="http://www.elbsound.studio">www.elbsound.studio</a></pre>
</body>
</html>