Commit ee7f5908 authored by Frediano Ziglio's avatar Frediano Ziglio
Browse files

channel-main: Add comment on handling GLib I/O error statuses



Document a behaviour in the code asked a couple of times.
Signed-off-by: Frediano Ziglio's avatarFrediano Ziglio <freddy77@gmail.com>
Acked-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
parent 94087502
Pipeline #209672 passed with stage
in 2 minutes and 32 seconds
......@@ -1947,6 +1947,9 @@ static void main_agent_handle_xfer_status(SpiceMainChannel *channel,
error = g_error_new_literal(G_IO_ERROR, err->error_code,
_("Invalid filename of transferred file"));
break;
/* Note that if the switch doesn't handle some code, "error" is
* left NULL so it will be treated as default error and
* assigned a generic message. This is a wanted behaviour. */
}
}
if (error == NULL) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment