]> git.mxchange.org Git - flightgear.git/commit
don't abort fgfs only because a nasal script called a property function
authormfranz <mfranz>
Tue, 23 May 2006 18:55:38 +0000 (18:55 +0000)
committermfranz <mfranz>
Tue, 23 May 2006 18:55:38 +0000 (18:55 +0000)
commite0b1d12a60a6bae20a0c5a73eea98286b4f04047
tree589f9ec250a438bc4f715fc4dc066dbb5f7d57a4
parentfdb9e94af3f7ea2f98d5e34ef132ce4911c3fc24
don't abort fgfs only because a nasal script called a property function
with an invalid path, as in getprop("/sim/model/737") or x.getNode("f:1").
Forward sg's error message to the Nasal runtime error function instead, so
you get something like:

  Nasal runtime error: name must begin with alpha or '_'
    at /home/m/fgfs/Base.local/Nasal/props.nas, line 30

Unfortunately, the location points to the line where the ghost wrapper
sits, rather than the offending script line.
src/Scripting/NasalSys.cxx
src/Scripting/nasal-props.cxx