From: Michael Roth Date: Sun, 7 Oct 2018 11:02:22 +0000 (+0300) Subject: qga-win: report specific error when failing to open channel X-Git-Tag: qemu-xen-4.13.0-rc1~586^2~1 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=a2c1ac4e22da848e0fef262086e0f29fbc6ff83a;p=qemu-xen.git qga-win: report specific error when failing to open channel Useful in general, but especially now that errors might occur more frequently with --retry-path set. Signed-off-by: Michael Roth Reviewed-by: Marc-André Lureau Signed-off-by: Michael Roth --- diff --git a/qga/channel-win32.c b/qga/channel-win32.c index b3597a8a0f..c86f4388db 100644 --- a/qga/channel-win32.c +++ b/qga/channel-win32.c @@ -302,7 +302,8 @@ static gboolean ga_channel_open(GAChannel *c, GAChannelMethod method, OPEN_EXISTING, FILE_FLAG_NO_BUFFERING | FILE_FLAG_OVERLAPPED, NULL); if (c->handle == INVALID_HANDLE_VALUE) { - g_critical("error opening path %s", newpath); + g_critical("error opening path %s: %s", newpath, + g_win32_error_message(GetLastError())); return false; }