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>
diff --git a/storagehandler.cpp b/storagehandler.cpp
index 96d3d54..437f858 100644
--- a/storagehandler.cpp
+++ b/storagehandler.cpp
@@ -520,7 +520,7 @@
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 @@
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();