# HG changeset patch
# User Richard Maciel <rmaciel(a)linux.vnet.ibm.com>
# Date 1235768794 10800
# Node ID 5d628d1be4d7777f8a14d1cc1818dcb26baae857
# Parent ebe6e8f75d1731f7c8d49777db6b547b92944b35
This patch exposes error messages from libvirt calls in Virt_Device.c
Signed-off-by: Richard Maciel <rmaciel(a)linux.vnet.ibm.com>
diff -r ebe6e8f75d17 -r 5d628d1be4d7 src/Virt_Device.c
--- a/src/Virt_Device.c Thu Feb 19 12:24:12 2009 -0800
+++ b/src/Virt_Device.c Fri Feb 27 18:06:34 2009 -0300
@@ -742,10 +742,11 @@
dom = virDomainLookupByName(conn, domain);
if (dom == NULL) {
- cu_statusf(broker, &s,
- CMPI_RC_ERR_NOT_FOUND,
- "No such instance (no domain for %s)",
- name);
+ virt_set_status(broker, &s,
+ CMPI_RC_ERR_NOT_FOUND,
+ conn,
+ "No such instance (no domain for %s)",
+ name);
goto err;
}