Commit 2b8cf369 authored by Bastien Nocera's avatar Bastien Nocera
Browse files

settings-widget: Prepare for future error reporting

We should be reporting some of the pairing errors better than we are.
Make some notes as to what those errors are.
parent a6dec3fa
......@@ -917,7 +917,11 @@ create_callback (GObject *source_object,
turn_off_pairing (user_data, path);
dbus_error = g_dbus_error_get_remote_error (error);
if (g_strcmp0 (dbus_error, "org.bluez.Error.AuthenticationCanceled") != 0) {
if (g_strcmp0 (dbus_error, "org.bluez.Error.AuthenticationFailed") == 0) {
//FIXME pairing failed because we entered the wrong code
} else if (g_strcmp0 (dbus_error, "org.bluez.Error.AuthenticationCanceled") == 0) {
//FIXME pairing was cancelled
} else {
//FIXME show an error?
/* translators:
* The “%s” is the device name, for example:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment