-
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
Avoid setting error message twice. #887
Avoid setting error message twice. #887
Conversation
Signed-off-by: Chen Lihui <Lihui.Chen@sony.com>
CI with ros2.repos |
I found there are three ways to deal with an error message.
rcl/rcl_action/src/rcl_action/action_server.c Lines 898 to 900 in 2883ce4
Lines 144 to 147 in 2883ce4
Lines 213 to 216 in 2883ce4
Is there a specific rule? |
I will update |
Signed-off-by: Chen Lihui <Lihui.Chen@sony.com>
2330bb3
to
57bae14
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.
lgtm
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.
Fine by me with green CI.
Just a minor fix.
There exist two methods to fix,
rcl_reset_error();
beforeRCL_SET_ERROR_MSG
. (the old error message LOST)RCUTILS_SAFE_FWRITE_TO_STDERR
instead ofRCL_SET_ERROR_MSG
if error already set. (Current PR)Signed-off-by: Chen Lihui Lihui.Chen@sony.com