MOARdV / AvionicsSystems

MOARdV's Avionics Systems for Kerbal Space Program - a new generation of IVA enhancement.
Other
52 stars 26 forks source link

Better error reporting parsing variables #155

Closed MOARdV closed 6 years ago

MOARdV commented 6 years ago

Currently, if the parser fails due to an incorrect parameter type, it throws an exception. But it doesn't tell you anything helpful (the example case is using fc.CurrentThrust(1) instead of fc.CurrentThrust(true). There's an NRE call stack, and you can kind-of guess because the MASComponent or MASPage feature that failed has its constructor in the call stack.

Improvements: