From 946bfb549564c8ee4931be982998bfa69a8b0e2d Mon Sep 17 00:00:00 2001 From: Rainer Kartmann <rainer.kartmann@kit.edu> Date: Thu, 10 Sep 2020 17:55:19 +0200 Subject: [PATCH] Try to print exception info --- .../RobotAPI/components/RobotState/RobotStateComponent.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/RobotAPI/components/RobotState/RobotStateComponent.cpp b/source/RobotAPI/components/RobotState/RobotStateComponent.cpp index fb8634c2f..93508d28d 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"); } -- GitLab