Skip to content

Commit a2c1ac4

Browse files
committed
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 <[email protected]> Reviewed-by: Marc-André Lureau <[email protected]> Signed-off-by: Michael Roth <[email protected]>
1 parent ebc88c0 commit a2c1ac4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

qga/channel-win32.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,8 @@ static gboolean ga_channel_open(GAChannel *c, GAChannelMethod method,
302302
OPEN_EXISTING,
303303
FILE_FLAG_NO_BUFFERING | FILE_FLAG_OVERLAPPED, NULL);
304304
if (c->handle == INVALID_HANDLE_VALUE) {
305-
g_critical("error opening path %s", newpath);
305+
g_critical("error opening path %s: %s", newpath,
306+
g_win32_error_message(GetLastError()));
306307
return false;
307308
}
308309

0 commit comments

Comments
 (0)