From 03f0497691537681a75fe498a6ca97e3f9dfbb64 Mon Sep 17 00:00:00 2001 From: Don Zickus Date: Thu, 30 Jun 2016 17:01:29 -0400 Subject: obexd: Add a detailed failure message for exchanging business cards When sending the ExchangeBusinessCards() command, the command returns a failure. It isn't clear what that failure is. Upon looking through the code, it is obvious the function is not implemented. This patch just adds an extra detail message 'Not Implemented' to make the failure a little more clear about what the problem is. --- obexd/client/opp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'obexd') diff --git a/obexd/client/opp.c b/obexd/client/opp.c index 3c2801a5a..92785f66e 100644 --- a/obexd/client/opp.c +++ b/obexd/client/opp.c @@ -117,7 +117,8 @@ fail: static DBusMessage *opp_exchange_business_cards(DBusConnection *connection, DBusMessage *message, void *user_data) { - return g_dbus_create_error(message, ERROR_INTERFACE ".Failed", NULL); + return g_dbus_create_error(message, ERROR_INTERFACE ".Failed", + "Not Implemented"); } static const GDBusMethodTable opp_methods[] = { -- cgit v1.2.1