mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
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
Block a user