[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 6/7] qga-win: report specific error when failing
From: |
Marc-André Lureau |
Subject: |
Re: [Qemu-devel] [PATCH 6/7] qga-win: report specific error when failing to open channel |
Date: |
Thu, 27 Sep 2018 15:48:01 +0400 |
Hi
On Thu, Sep 27, 2018 at 11:42 AM Bishara AbuHattoum <address@hidden> wrote:
>
> From: Michael Roth <address@hidden>
>
> Useful in general, but especially now that errors might occur more
> frequently with --retry-path set.
>
> Signed-off-by: Michael Roth <address@hidden>
> Message-Id: <address@hidden>
without extra message-id,
Reviewed-by: Marc-André Lureau <address@hidden>
> ---
> qga/channel-win32.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> 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;
> }
>
> --
> 2.17.0
>
>
--
Marc-André Lureau
- [Qemu-devel] [PATCH 3/7] qga: move w32 service handling out of run_agent(), (continued)
- [Qemu-devel] [PATCH 3/7] qga: move w32 service handling out of run_agent(), Bishara AbuHattoum, 2018/09/27
- [Qemu-devel] [PATCH 1/7] qga: group agent init/cleanup init separate routines, Bishara AbuHattoum, 2018/09/27
- [Qemu-devel] [PATCH 4/7] qga: add --retry-path option for re-initializing channel on failure, Bishara AbuHattoum, 2018/09/27
- [Qemu-devel] [PATCH 2/7] qga: hang GAConfig/socket_activation off of GAState global, Bishara AbuHattoum, 2018/09/27
- [Qemu-devel] [PATCH 5/7] qga-win: install service with --retry-path set by default, Bishara AbuHattoum, 2018/09/27
- [Qemu-devel] [PATCH 6/7] qga-win: report specific error when failing to open channel, Bishara AbuHattoum, 2018/09/27
- Re: [Qemu-devel] [PATCH 6/7] qga-win: report specific error when failing to open channel,
Marc-André Lureau <=
- [Qemu-devel] [PATCH 7/7] qga-win: changing --retry-path option behavior, Bishara AbuHattoum, 2018/09/27