mirror of https://gitee.com/openkylin/libvirt.git
remote: fix error reporting for invalid daemon mode
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
f8ec7c842d
commit
ceabe0f4cc
|
@ -872,8 +872,11 @@ doRemoteOpen(virConnectPtr conn,
|
|||
goto failed;
|
||||
|
||||
if (mode_str &&
|
||||
(mode = remoteDriverModeTypeFromString(mode_str)) < 0)
|
||||
(mode = remoteDriverModeTypeFromString(mode_str)) < 0) {
|
||||
virReportError(VIR_ERR_INVALID_ARG,
|
||||
_("Unknown remote mode '%s'"), mode_str);
|
||||
goto failed;
|
||||
}
|
||||
|
||||
if (conf && !proxy_str &&
|
||||
virConfGetValueString(conf, "remote_proxy", &proxy_str) < 0)
|
||||
|
|
Loading…
Reference in New Issue