[JW Lua] Error message without line number ... code snippet
Jan Angermüller
jan at angermueller.com
Fri Nov 14 17:05:10 CET 2014
Jari,
here is a short code snippet that produces a
"bad argument" error without line number.
Maybe it does have to do with the Lua implementation
of the Finale PDK as it has to do with the FCPoint class:
when assigning nil to a FCPoint.X the error message
without line number comes up.
The error message itself is ok ... but why without line number ?
Makes debugging difficult.
local maxpoint=finale.FCPoint(1,1)
maxpoint.X=nil
Running [Unnamed Script] ======>
bad argument #2 to '?' (number expected, got nil)
<======= [Unnamed Script] FAILED.
Jan
More information about the JWLua
mailing list