summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2018-06-19 16:21:34 -0500
committerRatan Gupta <ratagupt@linux.vnet.ibm.com>2018-09-05 01:47:12 +0000
commitce26282763be6a9d7fa21fcc93d5da8682d3a021 (patch)
tree53c64e6877c5fa84486930c30bd9ecf4df715b21
parentaed434f31386bc71245afd97d2e1f22dce63ab93 (diff)
downloadphosphor-networkd-ce26282763be6a9d7fa21fcc93d5da8682d3a021.tar.gz
phosphor-networkd-ce26282763be6a9d7fa21fcc93d5da8682d3a021.zip
Throw InternalFailure in catch
Throw an InternalFailure if unable to get the MAC Address from Inventory. Change-Id: I35f089bcb53ad1796a257a083a9b7ab67b0af496 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
-rw-r--r--ethernet_interface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethernet_interface.cpp b/ethernet_interface.cpp
index af8efc9..04f9009 100644
--- a/ethernet_interface.cpp
+++ b/ethernet_interface.cpp
@@ -719,7 +719,7 @@ std::string EthernetInterface::mACAddress(std::string value)
{
log<level::ERR>("Exception occurred during getting of MAC "
"address from Inventory");
- return MacAddressIntf::mACAddress();
+ elog<InternalFailure>();
}
}
auto interface = interfaceName();
OpenPOWER on IntegriCloud