summaryrefslogtreecommitdiffstats
path: root/cooling-type/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cooling-type/main.cpp')
-rw-r--r--cooling-type/main.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/cooling-type/main.cpp b/cooling-type/main.cpp
index 288f1b9..f690f80 100644
--- a/cooling-type/main.cpp
+++ b/cooling-type/main.cpp
@@ -4,6 +4,7 @@
#include <phosphor-logging/log.hpp>
#include "argument.hpp"
#include "cooling_type.hpp"
+#include "sdbusplus.hpp"
using namespace phosphor::cooling::type;
using namespace phosphor::fan::util;
@@ -63,7 +64,15 @@ int main(int argc, char* argv[])
coolingType.updateInventory(objpath);
rc = 0;
}
-
+ catch (DBusMethodError& dme)
+ {
+ rc = -1;
+ log<level::ERR>("Uncaught DBus method failure exception",
+ entry("BUSNAME=%s", dme.busName.c_str()),
+ entry("PATH=%s", dme.path.c_str()),
+ entry("INTERFACE=%s", dme.interface.c_str()),
+ entry("METHOD=%s", dme.method.c_str()));
+ }
catch (std::exception& err)
{
rc = -1;
OpenPOWER on IntegriCloud