[gvfs] Return correct error for invalid backends
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] Return correct error for invalid backends
- Date: Thu, 23 Aug 2012 20:05:16 +0000 (UTC)
commit 06f5d350266efeda9d26892561533e3daf9527aa
Author: Alexander Larsson <alexl redhat com>
Date: Thu Aug 23 21:54:53 2012 +0200
Return correct error for invalid backends
daemon/gvfsdaemon.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gvfsdaemon.c b/daemon/gvfsdaemon.c
index 7de4072..7db8ad2 100644
--- a/daemon/gvfsdaemon.c
+++ b/daemon/gvfsdaemon.c
@@ -970,8 +970,8 @@ g_vfs_daemon_initiate_mount (GVfsDaemon *daemon,
if (invocation)
g_dbus_method_invocation_return_error_literal (invocation,
G_IO_ERROR,
- G_IO_ERROR_ALREADY_MOUNTED,
- "Mountpoint Already registered");
+ G_IO_ERROR_FAILED,
+ "Invalid backend type");
else
g_warning ("Error mounting: invalid backend type\n");
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]