]> git.ipfire.org Git - thirdparty/libvirt.git/commit
src: Use consistent error preservation and restoration calls
authorJohn Ferlan <jferlan@redhat.com>
Thu, 6 Dec 2018 17:32:18 +0000 (12:32 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 16 Oct 2019 19:24:40 +0000 (15:24 -0400)
commit532e9a349b52249ec19f0c4d55eb746cd01feba5
treeeaf8648e26d4f7d3a74ab8bbf17717826c1ec3bf
parent4e7b3b1ebd9037af9d8d66a329d2e163dae0b1be
src: 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/libvirt-stream.c