libvirt/build-aux
Michal Privoznik 70983f4f53 vbox: Introduce vboxReportError()
When a VirtualBox API fails it produced an exception. Until now,
we did not have correct APIs wired up to get the exception and
its error message. Thus, we were left with plain:

  virReportError("virtualbox API failed, rc=%08x", rc);

This is not very user friendly because those rc values are hard
to parse (e.g. some values are defined as a sum of a base value
and some other value) and also it expects users to know where to
look.

But now that we have all machinery needed for querying
exceptions, vboxReportError() can be introduced. The aim is to
query VirtualBox exceptions and append them after the error
message we intent to report. If the exception can't be queried
successfully, this behaves exactly like virReportError().

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
2023-01-24 10:45:38 +01:00
..
check-spacing.pl syntax-check: Don't forbid curly braces around single line condition body 2020-09-15 15:20:23 +02:00
Makefile.in syntax-check: Detect awk the same as all other programs 2022-05-24 11:09:46 +02:00
Makefile.nonreentrant meson: add syntax-check 2020-08-03 09:27:06 +02:00
meson.build meson: Replace external_program.path() with external_program.full_path() 2022-10-10 15:06:09 +02:00
syntax-check.mk vbox: Introduce vboxReportError() 2023-01-24 10:45:38 +01:00