diff --git a/doc/org.bluez.Device.rst b/doc/org.bluez.Device.rst
index 646e2c7..61c394d 100644
--- a/doc/org.bluez.Device.rst
+++ b/doc/org.bluez.Device.rst
:org.bluez.Error.Failed:
:org.bluez.Error.InProgress:
:org.bluez.Error.AlreadyConnected:
+:org.bluez.Error.BREDR.ProfileUnavailable:
void Disconnect()
`````````````````
diff --git a/src/device.c b/src/device.c
index 2c741d3..2892b75 100644
--- a/src/device.c
+++ b/src/device.c
BTD_SERVICE_STATE_CONNECTED)) {
return dbus_message_new_method_return(msg);
} else {
- return btd_error_not_available_str(msg,
- ERR_BREDR_CONN_PROFILE_UNAVAILABLE);
+ return btd_error_profile_unavailable(msg);
}
}
diff --git a/src/error.c b/src/error.c
index 41dd904..e61baee 100644
--- a/src/error.c
+++ b/src/error.c
DBusMessage *btd_error_profile_unavailable(DBusMessage *msg)
{
- return g_dbus_create_error(msg, ERROR_INTERFACE
+ return g_dbus_create_error(msg, ERROR_INTERFACE_BREDR
".ProfileUnavailable",
- "Exhausted the list of BR/EDR "
- "profiles to connect to");
+ "No more profiles to connect to");
}
DBusMessage *btd_error_failed(DBusMessage *msg, const char *str)
diff --git a/src/error.h b/src/error.h
index 64297f4..47602d3 100644
--- a/src/error.h
+++ b/src/error.h
#include <stdint.h>
#define ERROR_INTERFACE "org.bluez.Error"
+#define ERROR_INTERFACE_BREDR "org.bluez.Error.BREDR"
/* BR/EDR connection failure reasons */
#define ERR_BREDR_CONN_ALREADY_CONNECTED "br-connection-already-"\