summaryrefslogtreecommitdiffstats
path: root/sensorhandler.cpp
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2018-10-13 13:11:32 -0700
committerPatrick Venture <venture@google.com>2018-10-17 15:50:06 -0700
commit64678b853377d60b2ff3129d087ad68df8e2bce7 (patch)
tree4edc095de03c2bb122b9d4e83a65ada486b155fd /sensorhandler.cpp
parentd99148b3a0e72775ec217ff4060e3021c50299c3 (diff)
downloadphosphor-host-ipmid-64678b853377d60b2ff3129d087ad68df8e2bce7.tar.gz
phosphor-host-ipmid-64678b853377d60b2ff3129d087ad68df8e2bce7.zip
cleanup: exception catching by reference
[sensorhandler.cpp:650]: (style) Exception should be caught by reference. Change-Id: Iec747c2dff988fcf6c6ca29715afa1c44cceee6d Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'sensorhandler.cpp')
-rw-r--r--sensorhandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sensorhandler.cpp b/sensorhandler.cpp
index bb06b94..770f6dc 100644
--- a/sensorhandler.cpp
+++ b/sensorhandler.cpp
@@ -648,7 +648,7 @@ void setUnitFieldsForObject(const ipmi::sensor::Info* info,
info->unit.c_str());
}
}
- catch (sdbusplus::exception::InvalidEnumString e)
+ catch (const sdbusplus::exception::InvalidEnumString& e)
{
log<level::WARNING>("Warning: no unit provided for sensor!");
}
OpenPOWER on IntegriCloud