-
Notifications
You must be signed in to change notification settings - Fork 163
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
rcl_action - user friendly error messages for invalid transitions #448
Conversation
Signed-off-by: Siddharth Kucheria <kucheria@usc.edu>
bcabfa5
to
d8517c4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be better if the descriptions were tied closer to their enum types.
We can declare them in types.h
(close to the enums) and define them in types.c
.
A comment can also be added to the enum with a reminder that the description variables should be changed if the enum values change.
Signed-off-by: Siddharth Kucheria <kucheria@usc.edu>
4375391
to
cf88f63
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One typo, otherwise LGTM after another round of CI 👍
rcl_action/src/rcl_action/types.c
Outdated
@@ -132,6 +132,13 @@ rcl_action_cancel_response_fini(rcl_action_cancel_response_t * cancel_response) | |||
return RCL_RET_OK; | |||
} | |||
|
|||
/// Values should be changed if enum values chang |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: "change"
Signed-off-by: Siddharth Kucheria <kucheria@usc.edu>
b8128df
to
2fdf2bf
Compare
@jacobperron
Fixes #417