diff --git a/python/mujoco/functions.cc b/python/mujoco/functions.cc index f9a0190e..0de473cf 100644 --- a/python/mujoco/functions.cc +++ b/python/mujoco/functions.cc @@ -515,7 +515,7 @@ PYBIND11_MODULE(_functions, pymodule) { mjtNum dt, Eigen::Ref qpos1, Eigen::Ref qpos2) { if (qvel.size() != m->nv) { - throw py::type_error("qvel should be of size nq"); + throw py::type_error("qvel should be of size nv"); } if (qpos1.size() != m->nq) { throw py::type_error("qpos1 should be of size nq"); @@ -534,7 +534,7 @@ PYBIND11_MODULE(_functions, pymodule) { throw py::type_error("qpos should be of size nq"); } if (qvel.size() != m->nv) { - throw py::type_error("qvel should be of size nq"); + throw py::type_error("qvel should be of size nv"); } return InterceptMjErrors(::mj_integratePos)( m, qpos.data(), qvel.data(), dt);