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

improve error msg of rcl_expand_topic_name #1076

Merged
merged 1 commit into from
Jun 9, 2023

Conversation

Deric-W
Copy link
Contributor

@Deric-W Deric-W commented Jun 9, 2023

If RCL_RET_TOPIC_NAME_INVALID is returned the error msg is obtained by calling rcl_topic_name_validation_result_string to ease debugging invalid topics.

I think this change would be useful because currently I have to debug erratically failing subscription initialisations at work and having a more specific error message would help a lot in understanding what went wrong in the future.

If `RCL_RET_TOPIC_NAME_INVALID` is returned the error msg
is obtained by calling `rcl_topic_name_validation_result_string`
to ease debugging invalid topics.

Signed-off-by: Eric Wolf <ewolf@advitec.de>
@fujitatomoya
Copy link
Collaborator

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@fujitatomoya
Copy link
Collaborator

https://ci.ros2.org/job/ci_linux-aarch64/13422/testReport/junit/projectroot.test/rclcpp/test_executors/ is unrelated, i will go ahead to merge this.

@fujitatomoya fujitatomoya merged commit 9931323 into ros2:rolling Jun 9, 2023
danthony06 pushed a commit to danthony06/rcl that referenced this pull request Jun 14, 2023
If `RCL_RET_TOPIC_NAME_INVALID` is returned the error msg
is obtained by calling `rcl_topic_name_validation_result_string`
to ease debugging invalid topics.

Signed-off-by: Eric Wolf <ewolf@advitec.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants