mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-10 04:58:12 -05:00
Add handling of error HTTP 500 codes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user