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

Fix for issue #975 - Adding warning when plugin has a wrong library parameter #989

Merged
merged 2 commits into from
Dec 2, 2016

Conversation

bhigy
Copy link
Contributor

@bhigy bhigy commented Dec 1, 2016

No description provided.

@@ -87,7 +87,10 @@ class DriversHelper : public YarpPluginSelector {
settings.readFromSearchable(prop,name);
settings.open(lib);
ConstString location = lib.getName().c_str();
if (location=="") continue;
if (location=="") {
Copy link
Member

Choose a reason for hiding this comment

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

Is location set empty after the library failed loading? Or does this work only for empty location? Do you mind adding a comment here to explain?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried by putting a wrong library name and it enters the if. So yes, wrong library name gives an empty location. I'll add a comment.

Copy link
Member

Choose a reason for hiding this comment

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

Perfect! Merging this then!

@drdanz drdanz added Component: Library - YARP_dev Target: YARP v2.3.68.1 PR Type: Feat/Enh This PR adds some new feature or enhances some part of YARP labels Dec 1, 2016
@drdanz drdanz merged commit 365a584 into robotology:master Dec 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants