1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-07 17:28:15 +00:00

remote: Fix incorrect error codes

Introduced by d4b53ef6c. For "no internalFlags support", the
error code is changed into INTERNAL_ERROR.
This commit is contained in:
Osier Yang 2011-09-01 15:15:17 +08:00
parent 03388b6424
commit fd038a337b

View File

@ -2936,7 +2936,7 @@ static int remoteDomainEventRegister(virConnectPtr conn,
remoteDriverLock(priv);
if (priv->domainEventState->timer < 0) {
remoteError(VIR_ERR_OPERATION_INVALID, "%s", _("no event support"));
remoteError(VIR_ERR_NO_SUPPORT, "%s", _("no event support"));
goto done;
}
@ -3285,7 +3285,7 @@ remoteSecretGetValue (virSecretPtr secret, size_t *value_size,
/* internalFlags intentionally do not go over the wire */
if (internalFlags) {
remoteError(VIR_ERR_OPERATION_INVALID, "%s", _("no internalFlags support"));
remoteError(VIR_ERR_INTERNAL_ERROR, "%s", _("no internalFlags support"));
goto done;
}
@ -3549,7 +3549,7 @@ static int remoteDomainEventRegisterAny(virConnectPtr conn,
remoteDriverLock(priv);
if (priv->domainEventState->timer < 0) {
remoteError(VIR_ERR_OPERATION_INVALID, "%s", _("no event support"));
remoteError(VIR_ERR_NO_SUPPORT, "%s", _("no event support"));
goto done;
}