summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2020-09-20 17:21:47 +0200
committerBastien Nocera <hadess@hadess.net>2020-09-20 17:21:47 +0200
commit2b8cf369dd719aa61cebe803be6bc2d75b671b6b (patch)
tree86fb1255eee245ae37e318f8468d03dd2b815fa5 /lib
parenta6dec3fa118903ff40d437f495e804d6cb6b18a5 (diff)
downloadgnome-bluetooth-2b8cf369dd719aa61cebe803be6bc2d75b671b6b.tar.gz
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/bluetooth-settings-widget.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/bluetooth-settings-widget.c b/lib/bluetooth-settings-widget.c
index ac1c9baa..8577b0f4 100644
--- a/lib/bluetooth-settings-widget.c
+++ b/lib/bluetooth-settings-widget.c
@@ -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: