Improve xend_get error message

This commit is contained in:
John Levon 2009-01-15 15:17:53 +00:00
parent 443698d2b2
commit c7095a4b4c
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Thu Jan 15 15:11:35 GMT 2009 John Levon <levon@movementarian.org>
* src/xend_internal.c: Improve xend_get error message
Thu Jan 15 01:31:45 GMT 2009 John Levon <levon@movementarian.org> Thu Jan 15 01:31:45 GMT 2009 John Levon <levon@movementarian.org>
* src/xen_internal.c: implement capabilities parsing for Solaris * src/xen_internal.c: implement capabilities parsing for Solaris

View File

@ -393,7 +393,8 @@ xend_get(virConnectPtr xend, const char *path,
if (((ret < 0) || (ret >= 300)) && if (((ret < 0) || (ret >= 300)) &&
((ret != 404) || (!STRPREFIX(path, "/xend/domain/")))) { ((ret != 404) || (!STRPREFIX(path, "/xend/domain/")))) {
virXendError(xend, VIR_ERR_GET_FAILED, virXendError(xend, VIR_ERR_GET_FAILED,
_("xend_get: error from xen daemon: %s"), content); _("%d status from xen daemon: %s:%s"),
ret, path, content);
} }
return ret; return ret;