Skip to content
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

Inconsistent exit codes of tools in error cases #1171

Closed
luator opened this issue Sep 25, 2017 · 2 comments
Closed

Inconsistent exit codes of tools in error cases #1171

luator opened this issue Sep 25, 2017 · 2 comments
Labels

Comments

@luator
Copy link
Contributor

luator commented Sep 25, 2017

I just noticed that the console tools (rosnode, rostopic, ...) are inconsistent in their return code in case of errors.

The case I tested was running them without a running roscore (using kinetic):

  • rostopic list --> exit code 1
  • rosservice list --> exit code 2
  • rosnode list --> exit code 0
  • rosparam list --> exit code 1

Especially the exit code of rosnode is problematic if you expect to get an error code like with the other tools.

@dirk-thomas
Copy link
Member

All tools should indeed return a non-zero exit code in case of errors. Some have specific codes to indicate the exact error though.

Please consider providing a pull request to fix the error code of rosnode list.

@luator
Copy link
Contributor Author

luator commented Sep 26, 2017

Alright, I will try to find some time for it in the next days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants