Skip to content

Commit

Permalink
Fix error message (#290)
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
  • Loading branch information
jacobperron authored Jun 7, 2019
1 parent 015f1ee commit 2a49da4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions rmw_fastrtps_cpp/src/rmw_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}

Expand Down
4 changes: 2 additions & 2 deletions rmw_fastrtps_cpp/src/rmw_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}

Expand Down

0 comments on commit 2a49da4

Please sign in to comment.