catch exceptions as const
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ia9932efb6a9335e80b3f2376d2d62e1b65866f44
diff --git a/src/bridgingcommands.cpp b/src/bridgingcommands.cpp
index 0157f42..916ba15 100644
--- a/src/bridgingcommands.cpp
+++ b/src/bridgingcommands.cpp
@@ -477,7 +477,7 @@
{
getChannelInfo(ctx->channel, chInfo);
}
- catch (sdbusplus::exception_t& e)
+ catch (const sdbusplus::exception_t& e)
{
phosphor::logging::log<phosphor::logging::level::ERR>(
"ipmiAppGetMessage: Failed to get Channel Info",
@@ -544,7 +544,7 @@
{
getChannelInfo(ctx->channel, chInfo);
}
- catch (sdbusplus::exception_t& e)
+ catch (const sdbusplus::exception_t& e)
{
phosphor::logging::log<phosphor::logging::level::ERR>(
"ipmiAppGetMessageFlags: Failed to get Channel Info",
@@ -592,7 +592,7 @@
getMsgFlagsRes.set(getMsgFlagWatchdogPreTimeOutBit);
}
}
- catch (sdbusplus::exception::exception& e)
+ catch (const sdbusplus::exception::exception& e)
{
phosphor::logging::log<phosphor::logging::level::ERR>(
"ipmiAppGetMessageFlags, dbus call exception");
@@ -627,7 +627,7 @@
{
getChannelInfo(ctx->channel, chInfo);
}
- catch (sdbusplus::exception_t& e)
+ catch (const sdbusplus::exception_t& e)
{
phosphor::logging::log<phosphor::logging::level::ERR>(
"ipmiAppClearMessageFlags: Failed to get Channel Info",
@@ -716,7 +716,7 @@
{
getChannelInfo(ctx->channel, chInfo);
}
- catch (sdbusplus::exception_t& e)
+ catch (const sdbusplus::exception_t& e)
{
phosphor::logging::log<phosphor::logging::level::ERR>(
"ipmiAppReadEventMessageBuffer: Failed to get Channel Info",