-
Notifications
You must be signed in to change notification settings - Fork 295
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
Clarify errors when plugins fail to load #1727
Conversation
Signed-off-by: Michael Carroll <michael@openrobotics.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
linters
Signed-off-by: Michael Carroll <michael@openrobotics.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think I can't say much of the unit tests, the rest looks good to me (besides a minor comment).
Signed-off-by: Michael Carroll <michael@openrobotics.org> Co-authored-by: Joan Aguilar Mayans <j.aguilarmayans@gmail.com>
Signed-off-by: Michael Carroll <michael@openrobotics.org>
I updated the tests to actually check the output for the general failure modes. |
Codecov Report
@@ Coverage Diff @@
## gz-sim7 #1727 +/- ##
===========================================
+ Coverage 63.93% 64.22% +0.29%
===========================================
Files 334 336 +2
Lines 26333 26600 +267
===========================================
+ Hits 16836 17084 +248
- Misses 9497 9516 +19
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Signed-off-by: Michael Carroll <michael@openrobotics.org>
🦟 Bug fix
Summary
I find that it's hard to tell one plugin failure mode from another with the current error messages. This expands the messages and also includes relevant information for helping to diagnose system plugin issues.
Now in the case that it fails to find a library, gz-sim will output the list of paths that were searched for the library.
When a bad (or misspelled!) plugin name is provided, it will output a list of the known plugins and aliases in that shared library.
Example Improved output:
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.