diff options
author | Carl-Anton Ingmarsson <ca.ingmarsson@gmail.com> | 2011-08-15 00:32:17 +0200 |
---|---|---|
committer | Christian Kellner <gicmo@gnome.org> | 2011-08-25 21:19:56 +0200 |
commit | 5037b20bc4f6b051812a7576fbbe245421cf55a3 (patch) | |
tree | 3378fb9f295723f686263f68e556d09c7a0abbf0 | |
parent | 30d7423fdf12c5fff7c3b93393eaefdd0f070e23 (diff) | |
download | gvfs-5037b20bc4f6b051812a7576fbbe245421cf55a3.tar.gz |
afp: print errors for some more results from FPExchangeFiles
-rw-r--r-- | daemon/gvfsafpconnection.h | 1 | ||||
-rw-r--r-- | daemon/gvfsbackendafp.c | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/daemon/gvfsafpconnection.h b/daemon/gvfsafpconnection.h index cabfa89b..62f1aaa3 100644 --- a/daemon/gvfsafpconnection.h +++ b/daemon/gvfsafpconnection.h @@ -233,6 +233,7 @@ typedef enum AFP_RESULT_DIR_NOT_FOUND = -5029, AFP_RESULT_VOL_LOCKED = -5031, AFP_RESULT_OBJECT_LOCKED = -5032, + AFP_RESULT_ID_NOT_FOUND = -5034, AFP_RESULT_PWD_EXPIRED_ERR = -5042, AFP_RESULT_INSIDE_SHARE_ERR = -5043, AFP_RESULT_INSIDE_TRASH_ERR = -5044, diff --git a/daemon/gvfsbackendafp.c b/daemon/gvfsbackendafp.c index bd0ca0f1..fb112e94 100644 --- a/daemon/gvfsbackendafp.c +++ b/daemon/gvfsbackendafp.c @@ -2199,6 +2199,14 @@ close_replace_exchange_files_cb (GObject *source_object, GAsyncResult *res, gpoi g_vfs_job_failed_literal (G_VFS_JOB (job), G_IO_ERROR, G_IO_ERROR_FAILED, _("Permission denied")); break; + case AFP_RESULT_ID_NOT_FOUND: + g_vfs_job_failed_literal (G_VFS_JOB (job), G_IO_ERROR, G_IO_ERROR_NOT_FOUND, + _("File doesn't exist")); + break; + case AFP_RESULT_OBJECT_TYPE_ERR: + g_vfs_job_failed_literal (G_VFS_JOB (job), G_IO_ERROR, G_IO_ERROR_IS_DIRECTORY, + _("File is a directory")); + break; default: g_vfs_job_failed (G_VFS_JOB (job), G_IO_ERROR, G_IO_ERROR_FAILED, _("Got error code: %d from server"), res_code); |