nasa / trick

Trick Simulation Environment. Trick provides a common set of simulation capabilities and utilities to build simulations automatically.
Other
43 stars 21 forks source link

Feature Request: `var_set` return values #1544

Closed matthewelmer closed 1 year ago

matthewelmer commented 1 year ago

It would be really handy if var_set returned a nonzero value on error. It already returns an int, so all that's left is to add a couple return statements! See #1543.

jdeans289 commented 1 year ago

Thanks for the contribution! We will accept this change.

However, I do want to clarify that if you are making a call to var_set through the variable server, you will not receive the return code over the network. You will get the return code if you call var_set through an input file or in your model code.

matthewelmer commented 1 year ago

Good to note. The use case I had in mind was for an input file, so that's no problem!