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

Throw exception if package name is empty #54

Merged
merged 1 commit into from
Oct 16, 2020

Conversation

jacobperron
Copy link

Otherwise, ament_index_cpp will throw a std::runtime_error.
Throwing an exception from resource_retriever instead makes for a more useful error message.

Otherwise, ament_index_cpp will throw a std::runtime_error.
Throwing an exception from resource_retriever instead makes for a more useful error message.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Copy link
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good with green CI.

@ahcorde
Copy link

ahcorde commented Oct 15, 2020

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@jacobperron
Copy link
Author

I think this would be good to backport to Foxy (and maybe other distros). For context, this fixes a crash in RViz when loading meshes. It is only expecting exceptions of type resource_retriever::Exception.

@jacobperron jacobperron merged commit e4d26c9 into ros2 Oct 16, 2020
@jacobperron jacobperron deleted the jacob/empty_package_name branch October 16, 2020 00:27
jacobperron added a commit that referenced this pull request Oct 16, 2020
Otherwise, ament_index_cpp will throw a std::runtime_error.
Throwing an exception from resource_retriever instead makes for a more useful error message.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
jacobperron added a commit that referenced this pull request Oct 16, 2020
Otherwise, ament_index_cpp will throw a std::runtime_error.
Throwing an exception from resource_retriever instead makes for a more useful error message.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
jacobperron added a commit that referenced this pull request Oct 16, 2020
Otherwise, ament_index_cpp will throw a std::runtime_error.
Throwing an exception from resource_retriever instead makes for a more useful error message.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
jacobperron added a commit that referenced this pull request Oct 16, 2020
Otherwise, ament_index_cpp will throw a std::runtime_error.
Throwing an exception from resource_retriever instead makes for a more useful error message.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
jacobperron added a commit that referenced this pull request Oct 16, 2020
Otherwise, ament_index_cpp will throw a std::runtime_error.
Throwing an exception from resource_retriever instead makes for a more useful error message.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
jacobperron added a commit that referenced this pull request Oct 16, 2020
Otherwise, ament_index_cpp will throw a std::runtime_error.
Throwing an exception from resource_retriever instead makes for a more useful error message.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants