mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-28 22:32:19 +00:00
Add handling of error HTTP 500 codes
This commit is contained in:
parent
61e8450f25
commit
55bf738483
@ -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>
|
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
|
* python/libvir.c: Pete Vetere pointed out a bug in string cast
|
||||||
|
@ -521,6 +521,9 @@ http2unix(int ret)
|
|||||||
case 404:
|
case 404:
|
||||||
errno = ESRCH;
|
errno = ESRCH;
|
||||||
break;
|
break;
|
||||||
|
case 500:
|
||||||
|
errno = EIO;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
virXendErrorInt(NULL, VIR_ERR_HTTP_ERROR, ret);
|
virXendErrorInt(NULL, VIR_ERR_HTTP_ERROR, ret);
|
||||||
errno = EINVAL;
|
errno = EINVAL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user