Skip to content

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

Open
@tylerjw

Description

@tylerjw

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions