diff --git a/source/RobotAPI/components/RobotState/RobotStateComponent.cpp b/source/RobotAPI/components/RobotState/RobotStateComponent.cpp index fb8634c2f2681cd3900575119f1bae61a3d0ffd6..93508d28d9bf152b930ce6d25c04c176104411a1 100644 --- a/source/RobotAPI/components/RobotState/RobotStateComponent.cpp +++ b/source/RobotAPI/components/RobotState/RobotStateComponent.cpp @@ -153,9 +153,13 @@ namespace armarx { readRobotInfo(robotFile); } + catch (const std::exception& e) + { + ARMARX_WARNING << "Failed to read robot info from file: " << robotFile << ".\nReason: " << e.what(); + } catch (...) { - ARMARX_WARNING << "Failed to read robot info from file: " << robotFile; + ARMARX_WARNING << "Failed to read robot info from file: " << robotFile << " for unknown reason."; } usingTopic("SimulatorResetEvent"); }