From 755d9d311677a400253f6921002784ed8729489f Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 11 Mar 2015 11:19:14 +0200 Subject: [PATCH] core: Add mapping from 'Already Paired' status to D-Bus error --- src/device.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/device.c b/src/device.c index 9e23c19a1..831efeaf9 100644 --- a/src/device.c +++ b/src/device.c @@ -2063,6 +2063,10 @@ static DBusMessage *new_authentication_return(DBusMessage *msg, uint8_t status) return dbus_message_new_error(msg, ERROR_INTERFACE ".AuthenticationCanceled", "Authentication Canceled"); + case MGMT_STATUS_ALREADY_PAIRED: + return dbus_message_new_error(msg, + ERROR_INTERFACE ".AlreadyExists", + "Already Paired"); default: return dbus_message_new_error(msg, ERROR_INTERFACE ".AuthenticationFailed", -- 2.47.3