Append warnings to model compile errors.
PiperOrigin-RevId: 827903480 Change-Id: I2ad17bf4cea0dae0ab803fbb7baa9bd70eef303d
This commit is contained in:
committed by
Copybara-Service
parent
34e5eecba5
commit
740afe22b3
@@ -4404,6 +4404,10 @@ mjModel* mjCModel::Compile(const mjVFS* vfs, mjModel** m) {
|
||||
|
||||
// save error info
|
||||
errInfo = err;
|
||||
if (warningtext[0]) {
|
||||
mju::strcat_arr(errInfo.message, "\n");
|
||||
mju::strcat_arr(errInfo.message, warningtext);
|
||||
}
|
||||
|
||||
// restore handler, return 0
|
||||
_mjPRIVATE__set_tls_error_fn(save_error);
|
||||
|
||||
Reference in New Issue
Block a user