[libvirt PATCH v4 11/11] remote: fix error reporting for invalid daemon mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
---
 src/remote/remote_driver.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
index 88eb52ec4b..cc1a10b775 100644
--- a/src/remote/remote_driver.c
+++ b/src/remote/remote_driver.c
@@ -873,8 +873,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)
-- 
2.26.2




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux