Skip to content

Commit

Permalink
Report GLFW initialization error
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Dec 3, 2024
1 parent cd018f1 commit 33b9ffe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mujoco_ros/src/mujoco_env.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ int MaybeGlfwInit()
auto success = Glfw().glfwInit();
if (success == GLFW_TRUE) {
std::atexit(Glfw().glfwTerminate);
} else {
const char *description;
int error = glfwGetError(&description);
ROS_ERROR("Failed to initialize GLFW: %d %s", error, description);
}
return success;
}();
Expand Down

0 comments on commit 33b9ffe

Please sign in to comment.