[Spice-commits] src/channel-main.c
Pavel Grunt
pgrunt at kemper.freedesktop.org
Thu Jun 22 16:57:43 UTC 2017
src/channel-main.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
New commits:
commit b5a0cdf6034a8d54b0829e7e4808a968dc88ea8f
Author: Jakub Janků <janku.jakub.jj at gmail.com>
Date: Tue Jun 6 23:23:01 2017 +0200
main: Handle file-xfer detailed errors
Log appropriate error messages when we receive
VD_AGENT_FILE_XFER_STATUS_SESSION_LOCKED,
VD_AGENT_FILE_XFER_STATUS_VDAGENT_NOT_CONNECTED,
VD_AGENT_FILE_XFER_STATUS_DISABLED.
Acked-by: Pavel Grunt <pgrunt at redhat.com>
diff --git a/src/channel-main.c b/src/channel-main.c
index 1202d13..4edd575 100644
--- a/src/channel-main.c
+++ b/src/channel-main.c
@@ -1882,6 +1882,19 @@ static void main_agent_handle_xfer_status(SpiceMainChannel *channel,
g_free(file_size_str);
break;
}
+ case VD_AGENT_FILE_XFER_STATUS_SESSION_LOCKED:
+ error = g_error_new_literal(SPICE_CLIENT_ERROR, SPICE_CLIENT_ERROR_FAILED,
+ _("User's session is locked and cannot transfer files, "
+ "unlock it and try again."));
+ break;
+ case VD_AGENT_FILE_XFER_STATUS_VDAGENT_NOT_CONNECTED:
+ error = g_error_new_literal(SPICE_CLIENT_ERROR, SPICE_CLIENT_ERROR_FAILED,
+ _("Session agent not connected."));
+ break;
+ case VD_AGENT_FILE_XFER_STATUS_DISABLED:
+ error = g_error_new_literal(SPICE_CLIENT_ERROR, SPICE_CLIENT_ERROR_FAILED,
+ _("File transfer is disabled."));
+ break;
case VD_AGENT_FILE_XFER_STATUS_SUCCESS:
break;
default:
More information about the Spice-commits
mailing list