]> git.ipfire.org Git - thirdparty/libvirt.git/commit
xenapi: Improve error reporting in xenapiOpen once again
authorMatthias Bolte <matthias.bolte@googlemail.com>
Thu, 21 Jul 2011 13:16:11 +0000 (15:16 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Sat, 29 Oct 2011 16:42:02 +0000 (18:42 +0200)
commit484460ec4678a264c5e7355495c2f0da72cb42bd
tree85bbaed25d7438225e25476964e230eedf646f3d
parent228a9ec312808a07c074e8d1b3f0f3d6776433d3
xenapi: Improve error reporting in xenapiOpen once again

privP->session->error_description is a list and in order to get the
complete error message all parts of the list should be concatenated.
xenapiSessionErrorHandler does this when its third parameter is NULL.
The current code discards all but the first part of the error message
resulting in a potentially incomplete error message.

This partly reverts 006be75ee214f9b4, that tried to avoid reporting
a (null) in the error message. The actual problem is more general in
returnErrorFromSession that might return NULL if there is no error.

Make sure that returnErrorFromSession return non-NULL always. Also
don't skip the last error message part.
src/xenapi/xenapi_driver.c
src/xenapi/xenapi_utils.c