summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Joseph <tomjoseph@in.ibm.com>2019-09-24 06:53:22 +0530
committerTom Joseph <tomjoseph@in.ibm.com>2019-09-25 04:53:01 +0000
commit30fd0a18b2e19b8a8777f9be91f9c5a0d593ffbb (patch)
tree8ed4687b7421f73c733452f96c7ca03b764fe1cf
parente91474cf7b023393594dc47bc0f2aaf4b8d5c72e (diff)
downloadphosphor-host-ipmid-30fd0a18b2e19b8a8777f9be91f9c5a0d593ffbb.tar.gz
phosphor-host-ipmid-30fd0a18b2e19b8a8777f9be91f9c5a0d593ffbb.zip
Handle exceptions correctly in GetSelTime and SetSelTime
Tested: Ensured that the exception is caught in the command handler and printed on the journal Change-Id: I8b45bd154d0fe7f698487a19d01b1dd709c77c75 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
-rw-r--r--storagehandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/storagehandler.cpp b/storagehandler.cpp
index 96d3d54..437f858 100644
--- a/storagehandler.cpp
+++ b/storagehandler.cpp
@@ -520,7 +520,7 @@ ipmi::RspType<uint32_t> // current time
log<level::ERR>(e.what());
return ipmi::responseUnspecifiedError();
}
- catch (const std::runtime_error& e)
+ catch (const std::exception& e)
{
log<level::ERR>(e.what());
return ipmi::responseUnspecifiedError();
@@ -572,7 +572,7 @@ ipmi::RspType<> ipmiStorageSetSelTime(uint32_t selDeviceTime)
log<level::ERR>(e.what());
return ipmi::responseUnspecifiedError();
}
- catch (const std::runtime_error& e)
+ catch (const std::exception& e)
{
log<level::ERR>(e.what());
return ipmi::responseUnspecifiedError();
OpenPOWER on IntegriCloud