catch exceptions as const
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ia8f2ae95679f98f2fc3f32239bbf3b3578c35888
diff --git a/extensions/phal/create_pel.cpp b/extensions/phal/create_pel.cpp
index c10f32c..b1557e7 100644
--- a/extensions/phal/create_pel.cpp
+++ b/extensions/phal/create_pel.cpp
@@ -80,7 +80,7 @@
throw std::runtime_error(
"Error in invoking D-Bus logging create interface");
}
- catch (std::exception& e)
+ catch (const std::exception& e)
{
throw e;
}
@@ -138,7 +138,7 @@
throw std::runtime_error(
"Error in invoking D-Bus logging create interface");
}
- catch (std::exception& e)
+ catch (const std::exception& e)
{
throw e;
}
@@ -180,7 +180,7 @@
throw std::runtime_error(
"Error in invoking D-Bus logging create interface");
}
- catch (std::exception& e)
+ catch (const std::exception& e)
{
log<level::ERR>(
fmt::format("D-bus call exception", "EXCEPTION={}", e.what())