diff options
author | Dinesh Chinari <chinari@us.ibm.com> | 2017-06-26 23:26:50 -0500 |
---|---|---|
committer | Dinesh Chinari <chinari@us.ibm.com> | 2017-06-28 08:16:18 -0500 |
commit | 618027abcf491b0b58f71bfe2b48c55dfb86462e (patch) | |
tree | 358d628f65ba2b426210d837681baa287b869603 /monitor/fan.cpp | |
parent | bb12c926dca2215bccfbd270da11f0c2b5822878 (diff) | |
download | phosphor-fan-presence-618027abcf491b0b58f71bfe2b48c55dfb86462e.tar.gz phosphor-fan-presence-618027abcf491b0b58f71bfe2b48c55dfb86462e.zip |
phosphor-fan-presence elog error exception.
Implemented elog exception for phosphor fan presence,
replacing runtime_errors.
Change-Id: I70465060838b2cbaeadccf84ed5924e222ac59e3
Signed-off-by: Dinesh Chinari <chinari@us.ibm.com>
Diffstat (limited to 'monitor/fan.cpp')
-rw-r--r-- | monitor/fan.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/monitor/fan.cpp b/monitor/fan.cpp index 17f5812..195317c 100644 --- a/monitor/fan.cpp +++ b/monitor/fan.cpp @@ -199,15 +199,7 @@ void Fan::updateInventory(bool functional) ObjectMap objectMap = getObjectMap(functional); std::string service; - try - { - service = phosphor::fan::util::getInvService(_bus); - } - catch (const std::runtime_error& err) - { - log<level::ERR>(err.what()); - return; - } + service = phosphor::fan::util::getInvService(_bus); auto msg = _bus.new_method_call(service.c_str(), INVENTORY_PATH, |