Closed matthewelmer closed 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.
Good to note. The use case I had in mind was for an input file, so that's no problem!
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.