Skip to content

Add error message if ros2controlcli commands fail#309

Merged
bmagyar merged 1 commit intoros-controls:masterfrom
pal-robotics-forks:fix-cli-return
Feb 1, 2021
Merged

Add error message if ros2controlcli commands fail#309
bmagyar merged 1 commit intoros-controls:masterfrom
pal-robotics-forks:fix-cli-return

Conversation

@v-lopez
Copy link
Copy Markdown
Contributor

@v-lopez v-lopez commented Jan 26, 2021

No description provided.

@destogl
Copy link
Copy Markdown
Member

destogl commented Jan 26, 2021

@v-lopez what do you think about #308? do you have any idea how to combine it with this PR?

@v-lopez
Copy link
Copy Markdown
Contributor Author

v-lopez commented Jan 26, 2021

#308 is right, I assumed the return value was ignored, but it had to be negated.

I still like the error messages added here, we could add to #308, but I don't know what's the standard practice. ros2param doesn't use exceptions, but ros2service does.

@destogl
Copy link
Copy Markdown
Member

destogl commented Jan 27, 2021

@bmagyar what do you think? which way to go?

@bmagyar
Copy link
Copy Markdown
Member

bmagyar commented Jan 28, 2021

Yeah I think the error messages are valuable but we should pass the return values as done in #308 . That one is ready to merge so let's rework this on top of that

Signed-off-by: Victor Lopez <victor.lopez@pal-robotics.com>
@v-lopez v-lopez changed the title Throw error if cli call fail, because return value is ignored Add error message if ros2controlcli commands fail Jan 29, 2021
@v-lopez
Copy link
Copy Markdown
Contributor Author

v-lopez commented Jan 29, 2021

Done, feel free to take a look.

@bmagyar bmagyar merged commit f506c2a into ros-controls:master Feb 1, 2021
mahaarbo pushed a commit to mahaarbo/ros2_control that referenced this pull request Feb 4, 2021
Signed-off-by: Victor Lopez <victor.lopez@pal-robotics.com>
@saikishor saikishor deleted the fix-cli-return branch July 9, 2025 20:27
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