]> xenbits.xensource.com Git - libvirt.git/commit
vbox: Replace virReportError() with vboxReportError()
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 20 Jan 2023 12:59:55 +0000 (13:59 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 24 Jan 2023 09:45:41 +0000 (10:45 +0100)
commit3d8bd1fbe3a5ab52eb04bf84378cf9d5802c7256
treec769b20eaf808da32a440e0301943dcae350df41
parent70983f4f53da274c928b10145455c07fc7e884ba
vbox: Replace virReportError() with vboxReportError()

Now that we have vboxReportError() which reports VirtualBox
errors too, we can switch the code to use the former. And since
the vboxReportError() is designed to behave exactly like
virReportError() we can do that almost everywhere, regardless of
the source of the error.

There are a few exceptions though, for instance, when
initializing VirtualBox SDK (we don't have all the objects needed
for querying exceptions yet), or when invalid combination of
arguments was passed to an API of ours, or when a function from
other module (e.g. src/conf/) failed.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/vbox/vbox_common.c