summaryrefslogtreecommitdiffstats
path: root/group.cpp
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2018-09-24 11:31:44 -0500
committerMatt Spinler <spinler@us.ibm.com>2018-09-24 11:31:44 -0500
commit911229275728128ec0f6ac044079c61bdd7aeb01 (patch)
tree1e00996a606480619d7158fea2067de15f0776da /group.cpp
parente77b8345d88c90288e4846c5da200187bed59d00 (diff)
downloadphosphor-led-manager-911229275728128ec0f6ac044079c61bdd7aeb01.tar.gz
phosphor-led-manager-911229275728128ec0f6ac044079c61bdd7aeb01.zip
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>
Diffstat (limited to 'group.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud