Skip to content

Commit

Permalink
Merge pull request #989 from bhigy/fixPluginLibraryWarning
Browse files Browse the repository at this point in the history
Fix for issue #975 - Adding warning when plugin has a wrong library parameter
  • Loading branch information
drdanz authored Dec 2, 2016
2 parents 561ad2d + fea1fa5 commit 365a584
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/libYARP_dev/src/Drivers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@ class DriversHelper : public YarpPluginSelector {
settings.readFromSearchable(prop,name);
settings.open(lib);
ConstString location = lib.getName().c_str();
if (location=="") continue;
if (location=="") {
// A wrong library name ends up with empty location
yWarning("Wrong library name for plugin %s", name.c_str());
continue;
}

ConstString cxx = prop.check("cxx",Value("unknown")).asString();
ConstString wrapper = prop.check("wrapper",Value("unknown")).asString();
Expand Down

0 comments on commit 365a584

Please sign in to comment.