[gvfs/gdbus-core] gdbus: More errors to strip



commit d41b5ec88bb9a90711505953a5bd60089a716886
Author: Tomas Bzatek <tbzatek redhat com>
Date:   Fri Jul 27 11:57:57 2012 +0200

    gdbus: More errors to strip

 common/gmountsource.c |    3 +++
 daemon/gvfsbackend.c  |    2 ++
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/common/gmountsource.c b/common/gmountsource.c
index 075f0e9..6847d32 100644
--- a/common/gmountsource.c
+++ b/common/gmountsource.c
@@ -234,6 +234,7 @@ ask_password_reply (GVfsDBusMountOperation *proxy,
                                                            &error))
     {
       data->aborted = TRUE;
+      g_dbus_error_strip_remote_error (error);
       g_simple_async_result_take_error (result, error);
     }
   else
@@ -544,6 +545,7 @@ ask_question_reply (GVfsDBusMountOperation *proxy,
                                                            &error))
     {
       data->aborted = TRUE;
+      g_dbus_error_strip_remote_error (error);
       g_simple_async_result_take_error (result, error);
     }
   else
@@ -750,6 +752,7 @@ show_processes_reply (GVfsDBusMountOperation *proxy,
                                                              &error))
     {
       data->aborted = TRUE;
+      g_dbus_error_strip_remote_error (error);
       g_simple_async_result_take_error (result, error);
     }
   else
diff --git a/daemon/gvfsbackend.c b/daemon/gvfsbackend.c
index f958a9b..b28447d 100644
--- a/daemon/gvfsbackend.c
+++ b/daemon/gvfsbackend.c
@@ -642,6 +642,7 @@ register_mount_got_proxy_cb (GObject *source_object,
   g_print ("register_mount_got_proxy_cb, proxy = %p\n", proxy);
   if (proxy == NULL)
     {
+      g_dbus_error_strip_remote_error (error);
       result = g_simple_async_result_new_take_error (source_object,
                                                      data->callback, data->callback_data,
                                                      error);
@@ -716,6 +717,7 @@ unregister_mount_got_proxy_cb (GObject *source_object,
   g_print ("unregister_mount_got_proxy_cb, proxy = %p\n", proxy);
   if (proxy == NULL)
     {
+      g_dbus_error_strip_remote_error (error);
       result = g_simple_async_result_new_take_error (source_object,
                                                      data->callback, data->callback_data,
                                                      error);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]