]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: Use consistent error preservation and restoration calls
authorJohn Ferlan <jferlan@redhat.com>
Thu, 6 Dec 2018 17:32:28 +0000 (12:32 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 16 Oct 2019 19:24:40 +0000 (15:24 -0400)
commit57a9d2fe013feea59cba89b01d86ef63f3e14cf6
tree302f36dead8bc45a6deaa824974a7d42d460c145
parent532e9a349b52249ec19f0c4d55eb746cd01feba5
libxl: Use consistent error preservation and restoration calls

Provide some consistency over error message variable name and usage
when saving error messages across possible other errors or possibility
of resetting of the last error.

Instead of virSaveLastError paired up with virSetError and virFreeError,
we should use the newer virErrorPreserveLast and virRestoreError.

Signed-off-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/libxl/libxl_migration.c