From 77f404a0bac73733ef665c6346641c4c4ddadcf3 Mon Sep 17 00:00:00 2001 From: Demonmasterlqx <183842220@qq.com> Date: Fri, 6 Mar 2026 21:24:37 +0800 Subject: [PATCH 1/2] Add more detailed error information to InitStageException::what() to show it types --- core/src/stage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/stage.cpp b/core/src/stage.cpp index 789da4651..3516e73a6 100644 --- a/core/src/stage.cpp +++ b/core/src/stage.cpp @@ -85,7 +85,7 @@ void InitStageException::append(InitStageException& other) { } const char* InitStageException::what() const noexcept { - static const char* msg = "Error initializing stage(s). ROS_ERROR_STREAM(e) for details."; + static const char* msg = "Error initializing stage(s). ROS_ERROR_STREAM(e) for details. The error type is moveit::task_constructor::InitStageException."; return msg; } From de703b960528d10d2858dcfa20e6abdb59fe4934 Mon Sep 17 00:00:00 2001 From: Demonmasterlqx <183842220@qq.com> Date: Fri, 6 Mar 2026 23:05:46 +0800 Subject: [PATCH 2/2] Update core/src/stage.cpp Co-authored-by: Robert Haschke --- core/src/stage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/stage.cpp b/core/src/stage.cpp index 3516e73a6..8b37752e4 100644 --- a/core/src/stage.cpp +++ b/core/src/stage.cpp @@ -85,7 +85,7 @@ void InitStageException::append(InitStageException& other) { } const char* InitStageException::what() const noexcept { - static const char* msg = "Error initializing stage(s). ROS_ERROR_STREAM(e) for details. The error type is moveit::task_constructor::InitStageException."; + static const char* msg = "mtc::InitStageException. Use ROS_ERROR_STREAM(exc) for details."; return msg; }