]> xenbits.xensource.com Git - libvirt.git/commit
util: error: Add helpers for saving and restoring of last error
authorPeter Krempa <pkrempa@redhat.com>
Fri, 1 Sep 2017 14:19:56 +0000 (16:19 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 15 Sep 2017 03:28:21 +0000 (05:28 +0200)
commit8333e7455eb2a28cb1e6f2415597d0e57a11a15b
tree4861b3837f0973725dd2d52dff9c71cbf0beadd4
parent1f085acb818247b4cc8c016a487c4cd75ff49fc2
util: error: Add helpers for saving and restoring of last error

Some cleanup paths overwrite a usefull error message with a less useful
one and we then try to preserve the original message. The handlers added
in this patch will simplify the operations since they are designed right
for the purpose.
src/libvirt_private.syms
src/util/virerror.c
src/util/virerror.h