Add handling of error HTTP 500 codes

This commit is contained in:
Daniel P. Berrange 2006-08-29 18:12:22 +00:00
parent 61e8450f25
commit 55bf738483
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,9 @@
Tue Aug 29 13:14:20 EDT 2006 Daniel Berrange <berrange@redhat.com>
* src/xend_internal.c: Add handling of HTTP 500 error code
which can be returned by XenD do indicate failure error when
performing the requested operation (Identified by Pete Vetere).
Tue Aug 29 15:41:46 CEST 2006 Daniel Veillard <veillard@redhat.com>
* python/libvir.c: Pete Vetere pointed out a bug in string cast

View File

@ -521,6 +521,9 @@ http2unix(int ret)
case 404:
errno = ESRCH;
break;
case 500:
errno = EIO;
break;
default:
virXendErrorInt(NULL, VIR_ERR_HTTP_ERROR, ret);
errno = EINVAL;