catch exceptions as const
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I17001575bc409351f5187b1b269e66968d402c1c
diff --git a/src/FruDevice.cpp b/src/FruDevice.cpp
index 52a83ce..1576e30 100644
--- a/src/FruDevice.cpp
+++ b/src/FruDevice.cpp
@@ -1074,7 +1074,7 @@
fruData = getFRUInfo(static_cast<uint8_t>(bus),
static_cast<uint8_t>(address));
}
- catch (std::invalid_argument& e)
+ catch (const std::invalid_argument& e)
{
std::cerr << "Failure getting FRU Info" << e.what() << "\n";
return false;