From c92b8caf81fd7ba8252927b996eb692a67b03305 Mon Sep 17 00:00:00 2001 From: Ivan Santiago Paunovic Date: Tue, 31 Mar 2020 12:49:26 -0300 Subject: [PATCH] Correct error message when event is not supported (#358) Signed-off-by: Ivan Santiago Paunovic --- rmw_fastrtps_shared_cpp/src/rmw_event.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rmw_fastrtps_shared_cpp/src/rmw_event.cpp b/rmw_fastrtps_shared_cpp/src/rmw_event.cpp index 25a8c73b8..4544d3136 100644 --- a/rmw_fastrtps_shared_cpp/src/rmw_event.cpp +++ b/rmw_fastrtps_shared_cpp/src/rmw_event.cpp @@ -56,7 +56,7 @@ __rmw_init_event( identifier, return RMW_RET_INCORRECT_RMW_IMPLEMENTATION); if (!internal::is_event_supported(event_type)) { - RMW_SET_ERROR_MSG("provided event_type is not supported by rmw_fastrtps_cpp"); + RMW_SET_ERROR_MSG_WITH_FORMAT_STRING("provided event_type is not supported by %s", identifier); return RMW_RET_UNSUPPORTED; }