Searched hist:91122927 (Results 1 – 1 of 1) sorted by relevance
/openbmc/phosphor-led-manager/fault-monitor/ |
H A D | fru-fault-monitor.cpp | 91122927 Mon Sep 24 11:31:44 CDT 2018 Matt Spinler <spinler@us.ibm.com> fault-monitor: Catch GetSubTree exceptions The C++ implementation of the mapper will throw an exception if the passed in interface was not found on any paths, which is expected to happen when fru-fault-monitor checks for error logs on startup and there aren't any. Catch that exception and just continue on the path of there being no error logs. Note this is made slightly more complicated by the fact that the default constructor for sdbusplus::message is deleted, so one cannot just do: sdbusplus::message reply; try { auto method = bus.new_method_call(...); reply = bus.call(method); } ... reply.read(...); Change-Id: Ic15c7112cbfe0f3df974748f90828f12255ec29a Signed-off-by: Matt Spinler <spinler@us.ibm.com>
|