diff options
author | Ross Lagerwall <rosslagerwall@gmail.com> | 2014-08-30 22:32:30 +0100 |
---|---|---|
committer | Ross Lagerwall <rosslagerwall@gmail.com> | 2014-10-13 22:03:06 +0100 |
commit | 7d3d832326f5114c517100dae6bafbadf5e6648f (patch) | |
tree | bd9edff8f306750e8ea9dcde310bea72acada533 | |
parent | 2914733df29d2889043914fa4a5a79d923aaf041 (diff) | |
download | gvfs-7d3d832326f5114c517100dae6bafbadf5e6648f.tar.gz |
afp: Give a better error message for non-existent volume
Give a better error message when trying to mount a volume that doesn't
exist.
https://bugzilla.gnome.org/show_bug.cgi?id=735729
-rw-r--r-- | daemon/gvfsafpvolume.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/daemon/gvfsafpvolume.c b/daemon/gvfsafpvolume.c index 58b8f644..248b0536 100644 --- a/daemon/gvfsafpvolume.c +++ b/daemon/gvfsafpvolume.c @@ -133,6 +133,14 @@ g_vfs_afp_volume_mount_sync (GVfsAfpVolume *volume, if (res_code != AFP_RESULT_NO_ERROR) { g_object_unref (reply); + + if (res_code == AFP_RESULT_OBJECT_NOT_FOUND) + { + g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND, + _("Volume doesn't exist")); + return FALSE; + } + goto generic_error; } |