diff --git a/rmw_fastrtps_cpp/src/rmw_client.cpp b/rmw_fastrtps_cpp/src/rmw_client.cpp index 32c257945..4bf8d8cf5 100644 --- a/rmw_fastrtps_cpp/src/rmw_client.cpp +++ b/rmw_fastrtps_cpp/src/rmw_client.cpp @@ -168,7 +168,7 @@ rmw_create_client( goto fail; } - // Create Client Subscriber and set QoS + // Create Client Publisher and set QoS if (!get_datawriter_qos(*qos_policies, publisherParam)) { RMW_SET_ERROR_MSG("failed to get datawriter qos"); goto fail; @@ -177,7 +177,7 @@ rmw_create_client( info->request_publisher_ = Domain::createPublisher(participant, publisherParam, info->pub_listener_); if (!info->request_publisher_) { - RMW_SET_ERROR_MSG("create_publisher() could not create publisher"); + RMW_SET_ERROR_MSG("create_client() could not create publisher"); goto fail; } diff --git a/rmw_fastrtps_cpp/src/rmw_service.cpp b/rmw_fastrtps_cpp/src/rmw_service.cpp index 01e597338..3f61bb95a 100644 --- a/rmw_fastrtps_cpp/src/rmw_service.cpp +++ b/rmw_fastrtps_cpp/src/rmw_service.cpp @@ -174,7 +174,7 @@ rmw_create_service( info->request_subscriber_ = Domain::createSubscriber(participant, subscriberParam, info->listener_); if (!info->request_subscriber_) { - RMW_SET_ERROR_MSG("create_client() could not create subscriber"); + RMW_SET_ERROR_MSG("create_service() could not create subscriber"); goto fail; } @@ -186,7 +186,7 @@ rmw_create_service( info->response_publisher_ = Domain::createPublisher(participant, publisherParam, nullptr); if (!info->response_publisher_) { - RMW_SET_ERROR_MSG("create_publisher() could not create publisher"); + RMW_SET_ERROR_MSG("create_service() could not create publisher"); goto fail; }