# HG changeset patch
# User Richard Maciel <rmaciel(a)linux.vnet.ibm.com>
# Date 1235768872 10800
# Node ID 2c0bcc9729ec08d18516a8febd1c636bcb0b0dd1
# Parent b4e20e3062bfca3bdebfd8b74920733927193665
This patch exposes error messages from libvirt calls in Virt_SettingsDefineCapabilities.c
Signed-off-by: Richard Maciel <rmaciel(a)linux.vnet.ibm.com>
diff -r b4e20e3062bf -r 2c0bcc9729ec src/Virt_SettingsDefineCapabilities.c
--- a/src/Virt_SettingsDefineCapabilities.c Fri Feb 27 18:07:47 2009 -0300
+++ b/src/Virt_SettingsDefineCapabilities.c Fri Feb 27 18:07:52 2009 -0300
@@ -453,9 +453,10 @@
rc = virConnectGetVersion(conn, &version);
CU_DEBUG("libvir : version=%ld, rc=%d", version, rc);
if (rc != 0) {
- cu_statusf(_BROKER, s,
- CMPI_RC_ERR_FAILED,
- "Could not get xen version");
+ virt_set_status(_BROKER, s,
+ CMPI_RC_ERR_FAILED,
+ conn,
+ "Unable to get xen version");
goto out;
}