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

Catch exception thrown by ROS when required parameter is not set and re-throw with parameter name #23

Open
tylerjw opened this issue Jul 27, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@tylerjw
Copy link
Contributor

tylerjw commented Jul 27, 2022

Ros emits an exception with a string like this when a required parameter is not set:
Exception thrown during init stage with message: expected [string] got [not set]

Catch that exception and re-throw it but add the name of the parameter to the exception so it prints a more useful error message for the user.

@tylerjw tylerjw added the enhancement New feature or request label Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant