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; }