check subprocess.returncode to print error message.#639
Conversation
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
|
@audrow could you take a look when you got time? |
audrow
left a comment
There was a problem hiding this comment.
Looks like a good change to me. Is there a way to add a test for it?
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
|
@clalancette i'd like to request a review. |
clalancette
left a comment
There was a problem hiding this comment.
Besides the comments inline, I'm thinking we should have some prefix to show that these messages came from ros2run, and not from the process itself. Maybe something like "[ros2run]: Message".
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
|
@clalancette all comments are addressed, i will run CI. |
|
@clalancette friendly ping. |
This comment is still open. I do think we should have some kind of prefix on the output so people can tell it comes from |
|
@clalancette my bad, i missed that. i will address it. |
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
|
unit test to confirm the message. (using simple example to generate segmentation fault) https://github.com/fujitatomoya/ros2_test_prover/blob/master/prover_rclcpp/src/ros2cli_601.cpp |
|
Thanks for the PR, @fujitatomoya! |
address #601
Signed-off-by: Tomoya Fujita Tomoya.Fujita@sony.com