qga: Shorten several error messages
commitcec07c79a41827689f9b9ea7be47fd1ae17a1242
authorMarkus Armbruster <armbru@redhat.com>
Tue, 14 May 2024 10:58:27 +0000 (14 12:58 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 27 May 2024 10:59:10 +0000 (27 12:59 +0200)
treeffe48988c0579ef62734b591756e922e3b12fabc
parentecfc9890c41541fb08ce07a6ff26e7bd14f74967
qga: Shorten several error messages

Some, but not all error messages are of the form

    Guest agent command failed, error was '<actual error message>'

For instance, command guest-exec can fail with an error message like

    Guest agent command failed, error was 'Failed to execute child process “/bin/invalid-cmd42” (No such file or directory)'

Shorten this to just just the actual error message.  The guest-exec
example becomes

    Failed to execute child process “/bin/invalid-cmd42” (No such file or directory)

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20240514105829.729342-3-armbru@redhat.com>
[Superfluous #include "qapi/qmp/qerror.h" deleted]
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com>
qga/commands-win32.c
qga/commands.c