From 3150f9d3090c5253fd8761644a8c99dfd1ebb947 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Thu, 23 Oct 2014 16:13:36 +0200 Subject: 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 file changed, 6 insertions(+) (limited to 'client') diff --git a/client/gdaemonfile.c b/client/gdaemonfile.c index 88f53b0d..d16ac09b 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); -- cgit v1.2.1