diff options
-rw-r--r-- | fault-monitor/fru-fault-monitor.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/fault-monitor/fru-fault-monitor.cpp b/fault-monitor/fru-fault-monitor.cpp index 6771b08..158389f 100644 --- a/fault-monitor/fru-fault-monitor.cpp +++ b/fault-monitor/fru-fault-monitor.cpp @@ -138,7 +138,17 @@ void action(sdbusplus::bus::bus& bus, method.append("Asserted"); method.append(sdbusplus::message::variant<bool>(assert)); - bus.call_noreply(method); + + try + { + bus.call_noreply(method); + } + catch (const sdbusplus::exception::SdBusError& e) + { + // Log an info message, system may not have all the LED Groups defined + log<level::INFO>("Failed to Assert LED Group", + entry("ERROR=%s", e.what())); + } return; } |