mirror of
https://github.com/nasa/trick.git
synced 2024-12-24 15:26:41 +00:00
Add return codes to var_set (#1543)
This commit is contained in:
parent
520e8a78ff
commit
3fb82f9d84
@ -551,9 +551,11 @@ int var_set_base( const char * var , T value , const char * units ) {
|
|||||||
ref = NULL;
|
ref = NULL;
|
||||||
} else {
|
} else {
|
||||||
message_publish(MSG_WARNING,"Cannot assign to %s because io_spec does not allow input\n", var) ;
|
message_publish(MSG_WARNING,"Cannot assign to %s because io_spec does not allow input\n", var) ;
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
message_publish(MSG_WARNING,"reference attributes not found for variable %s in call to var_set\n", var) ;
|
message_publish(MSG_WARNING,"reference attributes not found for variable %s in call to var_set\n", var) ;
|
||||||
|
return 2;
|
||||||
}
|
}
|
||||||
return 0 ;
|
return 0 ;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user