From 95b9a0f2157dade07af545d59b608effabf40bdf Mon Sep 17 00:00:00 2001 From: Yuval Tassa Date: Thu, 29 Dec 2022 17:14:27 -0800 Subject: [PATCH] Fix typo, improve error message. PiperOrigin-RevId: 498473694 Change-Id: I9b04df14f4afbe7148c3083da26451020bd2ebc9 --- src/user/user_objects.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/user/user_objects.cc b/src/user/user_objects.cc index 881f46d0..7142b6bb 100644 --- a/src/user/user_objects.cc +++ b/src/user/user_objects.cc @@ -1393,7 +1393,7 @@ void mjCGeom::Compile(void) { else { const char* err = alt.Set(quat, inertia, model->degree, model->euler); if (err) { - throw mjCError(this, "alternative specification error '%s' in geom %d", err, id); + throw mjCError(this, "orientation specification error '%s' in geom %d", err, id); } } @@ -1569,7 +1569,7 @@ void mjCSite::Compile(void) { else { const char* err = alt.Set(quat, 0, model->degree, model->euler); if (err) { - throw mjCError(this, "alternative specification error '%s' in site %d", err, id); + throw mjCError(this, "orientation specification error '%s' in site %d", err, id); } } @@ -1628,7 +1628,7 @@ void mjCCamera::Compile(void) { // process orientation specifications const char* err = alt.Set(quat, 0, model->degree, model->euler); if (err) { - throw mjCError(this, "alternative specification error '%s' in site %d", err, id); + throw mjCError(this, "orientation specification error '%s' in camera %d", err, id); } // normalize quaternion