[gnome-terminal] client: legacy: Strip remote errors
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-terminal] client: legacy: Strip remote errors
- Date: Sat, 14 Sep 2013 10:16:59 +0000 (UTC)
commit a705bca3b648ba2a0a2f8f53ce42253c3fa1177d
Author: Christian Persch <chpe gnome org>
Date:   Thu Sep 12 19:42:08 2013 +0200
    client: legacy: Strip remote errors
 src/terminal.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/terminal.c b/src/terminal.c
index a262e6c..e317574 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -131,6 +131,7 @@ handle_options (TerminalFactory *factory,
                   &object_path,
                   NULL /* cancellable */,
                   &err)) {
+            g_dbus_error_strip_remote_error (err);
             g_printerr ("Error creating terminal: %s\n", err->message);
             g_error_free (err);
 
@@ -159,6 +160,7 @@ handle_options (TerminalFactory *factory,
                                                                NULL /* cancellable */,
                                                                &err);
           if (receiver == NULL) {
+            g_dbus_error_strip_remote_error (err);
             g_printerr ("Failed to create proxy for terminal: %s\n", err->message);
             g_error_free (err);
             g_free (object_path);
@@ -184,6 +186,7 @@ handle_options (TerminalFactory *factory,
                                                  NULL /* infdlist */, NULL /* outfdlist */,
                                                 NULL /* cancellable */,
                                                 &err)) {
+            g_dbus_error_strip_remote_error (err);
             g_printerr ("Error: %s\n", err->message);
             g_error_free (err);
           }
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]