From 2fe53a88fcd3dba4f5dbcc469ddf2e8a87bfb4c1 Mon Sep 17 00:00:00 2001 From: jgvictores Date: Fri, 12 Jan 2018 00:52:14 +0100 Subject: [PATCH] add missing return false, for #67 --- libraries/YarpPlugins/YarpOpenraveBase/YarpOpenraveBase.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/YarpPlugins/YarpOpenraveBase/YarpOpenraveBase.cpp b/libraries/YarpPlugins/YarpOpenraveBase/YarpOpenraveBase.cpp index 0943fede..5c3dcf79 100644 --- a/libraries/YarpPlugins/YarpOpenraveBase/YarpOpenraveBase.cpp +++ b/libraries/YarpPlugins/YarpOpenraveBase/YarpOpenraveBase.cpp @@ -117,6 +117,7 @@ bool YarpOpenraveBase::configureOpenravePlugins(yarp::os::Searchable& config) if( ! pModule->SendCommand(cmdout,cmdin) ) { CD_ERROR("Bad send 'open' command.\n"); + return false; } CD_SUCCESS("Sent 'open' command.\n"); } @@ -169,6 +170,7 @@ bool YarpOpenraveBase::configureOpenravePlugins(yarp::os::Searchable& config) if( ! pModule->SendCommand(cmdout,cmdin) ) { CD_ERROR("Bad send '%s' command.\n",cmdin.str().c_str()); + return false; } CD_SUCCESS("Sent '%s' command.\n",cmdin.str().c_str()); }