diff options
Diffstat (limited to 'sensorhandler.cpp')
-rw-r--r-- | sensorhandler.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sensorhandler.cpp b/sensorhandler.cpp index d67e7f5..b321e96 100644 --- a/sensorhandler.cpp +++ b/sensorhandler.cpp @@ -1,3 +1,5 @@ +#include "config.h" + #include "sensorhandler.hpp" #include "fruread.hpp" @@ -420,6 +422,12 @@ ipmi_ret_t ipmi_sen_get_sensor_reading(ipmi_netfn_t netfn, ipmi_cmd_t cmd, resp->operation = 1 << scanningEnabledBit; return IPMI_CC_OK; } +#ifdef UPDATE_FUNCTIONAL_ON_FAIL + catch (const SensorFunctionalError& e) + { + return IPMI_CC_RESPONSE_ERROR; + } +#endif catch (const std::exception& e) { *data_len = getResponse.size(); |