Signed-off-by: Daniel P. Berrangé <berrange(a)redhat.com>
---
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