Print failing object path after failed bus lookup
Change-Id: I599d8297b4d2fd45831443685ea5b7d53f1515b6
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/storageaddsel.cpp b/storageaddsel.cpp
index 47328b0..87018e7 100644
--- a/storageaddsel.cpp
+++ b/storageaddsel.cpp
@@ -183,7 +183,8 @@
mbus = ipmid_get_sd_bus_connection();
r = mapper_get_service(mbus, object_name, &bus_name);
if (r < 0) {
- fprintf(stderr, "Failed to get connection, return value: %s.\n", strerror(-r));
+ fprintf(stderr, "Failed to get %s connection: %s\n",
+ object_name, strerror(-r));
goto finish;
}
r = sd_bus_message_new_method_call(mbus,&m,