catch exceptions as const
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ic8e6ade739bd5ea6e79cac6b9bb2b182748e10c8
diff --git a/log_manager.cpp b/log_manager.cpp
index c380429..e9a676a 100644
--- a/log_manager.cpp
+++ b/log_manager.cpp
@@ -434,7 +434,7 @@
create(entry.message(), entry.id(), entry.timestamp(),
entry.severity(), entry.additionalData(), assocs, ffdc);
}
- catch (std::exception& e)
+ catch (const std::exception& e)
{
lg2::error(
"An extension's create function threw an exception: {ERROR}",
@@ -502,7 +502,7 @@
return;
}
}
- catch (std::exception& e)
+ catch (const std::exception& e)
{
lg2::error("An extension's deleteProhibited function threw an "
"exception: {ERROR}",
@@ -540,7 +540,7 @@
{
remove(entryId);
}
- catch (std::exception& e)
+ catch (const std::exception& e)
{
lg2::error("An extension's delete function threw an exception: "
"{ERROR}",