[gnome-terminal/gnome-3-10] client: legacy: Strip remote errors



commit 9d680a3b2744fddfe0c602681beb5537c6d2fdc7
Author: Christian Persch <chpe gnome org>
Date:   Thu Sep 12 19:42:08 2013 +0200

    client: legacy: Strip remote errors
    
    (cherry picked from commit a705bca3b648ba2a0a2f8f53ce42253c3fa1177d)

 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]