[gnome-bluetooth] sendto: Show a better error message when connection refused
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] sendto: Show a better error message when connection refused
- Date: Mon, 8 Jun 2015 12:36:52 +0000 (UTC)
commit 49487eede220af64293096f8b51d793273c25ac2
Author: Bastien Nocera <hadess hadess net>
Date: Mon Jun 8 14:24:35 2015 +0200
sendto: Show a better error message when connection refused
https://bugzilla.gnome.org/show_bug.cgi?id=746698
sendto/main.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/sendto/main.c b/sendto/main.c
index c9a048e..083bad8 100644
--- a/sendto/main.c
+++ b/sendto/main.c
@@ -123,6 +123,12 @@ cleanup_error (GError *error)
g_free (remote_error);
g_dbus_error_strip_remote_error (error);
+ g_debug ("Error message is: %s", error->message);
+
+ /* And now, take advantage of the fact that obexd isn't translated */
+ if (g_strcmp0 (error->message, "Unable to find service record") == 0) {
+ return g_strdup (_("Make sure that the remote device is switched on and that it accepts
Bluetooth connections"));
+ }
return g_strdup (error->message);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]