When reporting compilation errors, include warning strings.

This allows plugins to call mju_warning, and have the string propagate to users.

PiperOrigin-RevId: 650621601
Change-Id: I608e7a3a1ad126ab8da2ff0634fa708458fb9ccc
This commit is contained in:
Nimrod Gileadi
2024-07-09 07:32:26 -07:00
committed by Copybara-Service
parent 450e7ff777
commit c5f958bdff
3 changed files with 11 additions and 4 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ std::unique_ptr<Pid> Pid::Create(const mjModel* m, int instance) {
}
if (config.slew_max.value_or(0.0) < 0) {
mju_warning("maxslew must be non-negative");
mju_warning("slewmax must be non-negative");
return nullptr;
}