Skip to content

Commit

Permalink
qga-win: report specific error when failing to open channel
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
mdroth committed Oct 31, 2018
1 parent ebc88c0 commit a2c1ac4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qga/channel-win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit a2c1ac4

Please sign in to comment.