summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2009-03-19 19:04:39 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2009-03-19 19:04:39 +0200
commit93dd7177ba5df9dfb14132a8319fa03cceb7556b (patch)
treeb5b6d3d8147452df1f3b16be2f2034c4ab36d1ab
parent0cd8e651b6f004bcc64387d59f6bcb29190ffed6 (diff)
Fix CancelDeviceCreation error to match the API description
-rw-r--r--src/adapter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/adapter.c b/src/adapter.c
index 821fd2b1..69774406 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -1472,8 +1472,8 @@ static DBusMessage *cancel_device_creation(DBusConnection *conn,
device = adapter_find_device(adapter, address);
if (!device)
return g_dbus_create_error(msg,
- ERROR_INTERFACE ".DoesNotExist",
- "Device does not exist");
+ ERROR_INTERFACE ".NotInProgress",
+ "Device creation not in progress");
if (!device_is_temporary(device) || !device_is_bonding(device, sender))
return not_authorized(msg);