Skip to content

Conversation

@ivanpauno
Copy link
Member

@ivanpauno ivanpauno added the in review Waiting for review (Kanban column) label Aug 29, 2019
@ivanpauno ivanpauno self-assigned this Aug 29, 2019

// rmw node specific ret codes in 2XX
/// Failed to find node name
#define RMW_RET_NON_EXISTENT_NODE_NAME 203
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why 203 instead of maybe 20?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found the matching define in rcl so this number makes sense. Maybe mention rcl in the existing comment.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it matter if they're matching? There's a convert function anyway.

Seems arbitrary to me.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, I think the name needs to be updated according to ros2/rcl#492 (comment)

- RMW_RET_NON_EXISTENT_NODE_NAME
+ RMW_RET_NODE_NAME_NON_EXISTENT

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it matter if they're matching? There's a convert function anyway.

Seems arbitrary to me.

It's arbitrary yes, but I think it have some sense.

Also, I think the name needs to be updated according to ros2/rcl#492 (comment)

- RMW_RET_NON_EXISTENT_NODE_NAME
+ RMW_RET_NODE_NAME_NON_EXISTENT

Thanks, forgot to push that commit.

Signed-off-by: ivanpauno <[email protected]>

// rmw node specific ret codes in 2XX
/// Failed to find node name
// Using same return code than in rcl
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ivanpauno why?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer using the same code when possible, I don't think it's important

Copy link
Contributor

@hidmic hidmic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ivanpauno ivanpauno merged commit 63b71a1 into master Sep 17, 2019
@delete-merged-branch delete-merged-branch bot deleted the ivanpauno/add-error-for-non-existent-node branch September 17, 2019 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in review Waiting for review (Kanban column)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants