Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error message #290

Merged
merged 1 commit into from
Jun 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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