diff options
author | Ross Lagerwall <rosslagerwall@gmail.com> | 2014-12-20 07:14:33 +0200 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2015-01-06 10:38:57 +0100 |
commit | 754b8750abbd01ae8a429b5f75d5e9f9622ab010 (patch) | |
tree | 3248b98861891b138a6247185bd80548364248df /client/gdaemonvfs.c | |
parent | a03635ee68f043b68c1bb4cb95114af3ecb65ec4 (diff) | |
download | gvfs-754b8750abbd01ae8a429b5f75d5e9f9622ab010.tar.gz |
client: Strip remote dbus error when setting metadata fails
Without this, if the function fails, the error presented to the user looks
like:
GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._g_2dio_2derror_2dquark.Code1:
Can't find metadata file /home/ross/.local/share/gvfs-metadata/home
https://bugzilla.gnome.org/show_bug.cgi?id=598561
Diffstat (limited to 'client/gdaemonvfs.c')
-rw-r--r-- | client/gdaemonvfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/gdaemonvfs.c b/client/gdaemonvfs.c index 1060c440..19e65b1a 100644 --- a/client/gdaemonvfs.c +++ b/client/gdaemonvfs.c @@ -1341,6 +1341,8 @@ g_daemon_vfs_local_file_set_attributes (GVfs *vfs, error)) { res = FALSE; + if (error && *error) + g_dbus_error_strip_remote_error (*error); error = NULL; /* Don't set further errors */ for (i = 0; attributes[i] != NULL; i++) g_file_info_set_attribute_status (info, attributes[i], |