qga-win32: Improve guest-set-user-password, guest-file-open errors
commitecfc9890c41541fb08ce07a6ff26e7bd14f74967
authorMarkus Armbruster <armbru@redhat.com>
Tue, 14 May 2024 10:58:26 +0000 (14 12:58 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 27 May 2024 10:53:53 +0000 (27 12:53 +0200)
treefd2c0aa990d62b717498994c6c321d0e87612c3c
parent5b957bf6d378cfa0c196b2be119449e086647612
qga-win32: Improve guest-set-user-password, guest-file-open errors

When guest-set-user-password's argument @password can't be converted
from UTF-8 to UTF-16, we report something like

    Guest agent command failed, error was 'Invalid sequence in conversion input'

Improve this to

    can't convert 'password' to UTF-16: Invalid sequence in conversion input

Likewise for argument @username, and guest-file-open argument @path,
even though I'm not sure you can actually get invalid input past the
QMP core there.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20240514105829.729342-2-armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com>
qga/commands-win32.c