]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: error: Add API for prefixing last set error with a string
authorPeter Krempa <pkrempa@redhat.com>
Tue, 11 Jun 2019 09:23:48 +0000 (11:23 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 20 Jun 2019 15:10:24 +0000 (17:10 +0200)
commit5fa5cc37feb70c21aebc9ee77ade5eb369adea32
treef5f6153f7c1c898f7e62d96d145c349cc3ef2da5
parent3203681e5e8513425acdf3f25d0981f5157f0ddf
util: error: Add API for prefixing last set error with a string

In some cases we report a low level error message which does not have
enough information to see what the problem is. To allow improving on
this add an API which will prefix the error message with another error
message string which can be used to describe where the error comes from.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
ACKed-by: Michal Privoznik <mprivozn@redhat.com>
cfg.mk
src/libvirt_private.syms
src/util/virerror.c
src/util/virerror.h