Append warnings to model compile errors.

PiperOrigin-RevId: 827903480
Change-Id: I2ad17bf4cea0dae0ab803fbb7baa9bd70eef303d
This commit is contained in:
Adrian Collister
2025-11-04 04:14:13 -08:00
committed by Copybara-Service
parent 34e5eecba5
commit 740afe22b3
+4
View File
@@ -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);