From 670f6e703739819388a89b14afe9e6708d3f51a9 Mon Sep 17 00:00:00 2001 From: William Woodall Date: Mon, 29 Oct 2018 23:00:12 -0500 Subject: [PATCH] use new error handling API from rcutils Signed-off-by: William Woodall --- include/ros1_bridge/factory.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ros1_bridge/factory.hpp b/include/ros1_bridge/factory.hpp index 008316e8..eebb9df9 100755 --- a/include/ros1_bridge/factory.hpp +++ b/include/ros1_bridge/factory.hpp @@ -163,7 +163,7 @@ class Factory : public FactoryInterface return; // do not publish messages from bridge itself } } else { - auto msg = std::string("Failed to compare gids: ") + rmw_get_error_string_safe(); + auto msg = std::string("Failed to compare gids: ") + rmw_get_error_string().str; rmw_reset_error(); throw std::runtime_error(msg); }