# HG changeset patch
# User Richard Maciel <rmaciel(a)linux.vnet.ibm.com>
# Date 1235768862 10800
# Node ID 0eb7481830366f10b777b949425e228200935a51
# Parent 26cbb2d7160307834cfa1fb5d77079532e534774
This patch exposes error messages from libvirt calls in Virt_KVMRedirectionSAP
Signed-off-by: Richard Maciel <rmaciel(a)linux.vnet.ibm.com>
diff -r 26cbb2d71603 -r 0eb748183036 src/Virt_KVMRedirectionSAP.c
--- a/src/Virt_KVMRedirectionSAP.c Fri Feb 27 18:07:34 2009 -0300
+++ b/src/Virt_KVMRedirectionSAP.c Fri Feb 27 18:07:42 2009 -0300
@@ -392,17 +392,19 @@
dom = virDomainLookupByName(conn, sys);
if (dom == NULL) {
- cu_statusf(broker, &s,
- CMPI_RC_ERR_NOT_FOUND,
- "No such instance (%s)",
- sys);
+ virt_set_status(broker, &s,
+ CMPI_RC_ERR_NOT_FOUND,
+ conn,
+ "No such instance (%s)",
+ sys);
goto out;
}
if (!check_graphics(dom, &dominfo)) {
- cu_statusf(broker, &s,
- CMPI_RC_ERR_FAILED,
- "No console device for this guest");
+ virt_set_status(broker, &s,
+ CMPI_RC_ERR_FAILED,
+ conn,
+ "No console device for this guest");
goto out;
}