Catch sdbusplus exceptions in IPMI net
Missing the correct exception was causing issues with setting the IPV4
address
Change-Id: Ieaaacfcbaec82a0c3b110889817a7ceb9cda8d3c
Signed-off-by: Dave Cobbley <david.j.cobbley@linux.intel.com>
Signed-off-by: Yong Li <yong.b.li@linux.intel.com>
diff --git a/libipmid/utils.cpp b/libipmid/utils.cpp
index 4fd219e..3ff79ed 100644
--- a/libipmid/utils.cpp
+++ b/libipmid/utils.cpp
@@ -358,9 +358,10 @@
"Delete");
}
}
- catch (InternalFailure& e)
+ catch (sdbusplus::exception::exception& e)
{
- log<level::INFO>("Unable to delete the objects having",
+ log<level::INFO>("sdbusplus exception - Unable to delete the objects",
+ entry("ERROR=%s", e.what()),
entry("INTERFACE=%s", interface.c_str()),
entry("SERVICE=%s", serviceRoot.c_str()));
}