Skip to content

Commit

Permalink
update break
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-du-car committed Nov 10, 2023
1 parent 9f565ec commit 04de385
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ namespace RSUHealthMonitor
snmp_response_obj responseVal;
auto success = _snmpClientPtr->process_snmp_request(config.oid, request_type::GET, responseVal);
if (!success && config.required)
PLOG(logERROR) << "SNMP session stopped as the required field: " << config.field << " failed!";
break;
PLOG(logERROR) << "SNMP session stopped as the required field: " << config.field << " failed! Return empty RSU status!";
return Json::nullValue;

if (success && responseVal.type == snmp_response_obj::response_type::INTEGER)
{
Expand Down

0 comments on commit 04de385

Please sign in to comment.