Added return false when data is not written

This commit is contained in:
Matt Hill
2014-07-02 19:48:59 -04:00
parent 1608886cba
commit 06112af3e1

View File

@@ -293,6 +293,7 @@ bool writeToQueue(std::string jsonResult)
catch (const std::runtime_error& error) catch (const std::runtime_error& error)
{ {
LOG4CPLUS_WARN(logger, "Error writing to Beanstalk. Result has not been saved."); LOG4CPLUS_WARN(logger, "Error writing to Beanstalk. Result has not been saved.");
return false;
} }
return true; return true;
} }