[gvfs/wip/goa: 5/7] client: Always set an error if we don't have a mount
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/wip/goa: 5/7] client: Always set an error if we don't have a mount
- Date: Thu, 23 Oct 2014 18:23:59 +0000 (UTC)
commit eb63a24ebb9326acd7fe4b82171641f2da768855
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Oct 23 16:13:36 2014 +0200
client: Always set an error if we don't have a mount
https://bugzilla.gnome.org/show_bug.cgi?id=739075
client/gdaemonfile.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/client/gdaemonfile.c b/client/gdaemonfile.c
index 88f53b0..d16ac09 100644
--- a/client/gdaemonfile.c
+++ b/client/gdaemonfile.c
@@ -3495,6 +3495,12 @@ find_enclosing_mount_cb (GMountInfo *mount_info,
goto out;
}
+ g_simple_async_result_set_error (data->result, G_IO_ERROR,
+ G_IO_ERROR_NOT_FOUND,
+ /* translators: this is an error message when there is no user visible "mount" object
+ corresponding to a particular path/uri */
+ _("Could not find enclosing mount"));
+
out:
_g_simple_async_result_complete_with_cancellable (data->result, data->cancellable);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]