diff --git a/libraries/OpenravePlugins/OpenraveYarpPluginLoader/OpenraveYarpPluginLoader.cpp b/libraries/OpenravePlugins/OpenraveYarpPluginLoader/OpenraveYarpPluginLoader.cpp index b512137a..ba2faa8e 100644 --- a/libraries/OpenravePlugins/OpenraveYarpPluginLoader/OpenraveYarpPluginLoader.cpp +++ b/libraries/OpenravePlugins/OpenraveYarpPluginLoader/OpenraveYarpPluginLoader.cpp @@ -60,7 +60,7 @@ class OpenraveYarpPluginLoader : public OpenRAVE::ModuleBase CD_DEBUG("[%s]\n", cmd.c_str()); std::stringstream ss(cmd); - //-- Fill openStrings and loadString + //-- Fill openStrings and envString std::vector openStrings; std::string envString(""); @@ -113,7 +113,7 @@ class OpenraveYarpPluginLoader : public OpenRAVE::ModuleBase if ( !GetEnv()->Load(fullEnvString.c_str()) ) { CD_ERROR("Could not load '%s' environment.\n",fullEnvString.c_str()); - return false; + return 1; } CD_SUCCESS("Loaded '%s' environment.\n",fullEnvString.c_str()); }