Blame SOURCES/0018-Show-errors-generated-by-connection-dialog.patch

1efd99
From a1ca605ad8a4fd1aa76fff259080963f342e07c7 Mon Sep 17 00:00:00 2001
1efd99
From: Christophe de Dinechin <cdupontd@redhat.com>
1efd99
Date: Thu, 9 Feb 2017 13:00:19 +0100
1efd99
Subject: [PATCH 18/26] Show errors generated by connection dialog
1efd99
1efd99
When running 'remote-viewer' without arguments,
1efd99
and selecting a non-supported protocol, e.g. ssh://foo,
1efd99
the generated error was silently swallowed by the retry loop.
1efd99
This was introduced in 06b2c382468876a19600374bd59475e66d488af8.
1efd99
1efd99
Signed-off-by: Christophe de Dinechin <cdupontd@redhat.com>
1efd99
---
1efd99
 src/remote-viewer.c | 3 +++
1efd99
 1 file changed, 3 insertions(+)
1efd99
1efd99
diff --git a/src/remote-viewer.c b/src/remote-viewer.c
1efd99
index d04dbb5..8c31532 100644
1efd99
--- a/src/remote-viewer.c
1efd99
+++ b/src/remote-viewer.c
1efd99
@@ -1195,6 +1195,9 @@ cleanup:
1efd99
     type = NULL;
1efd99
 
1efd99
     if (!ret && priv->open_recent_dialog) {
1efd99
+        if (error != NULL) {
1efd99
+            virt_viewer_app_simple_message_dialog(app, _("Unable to connect: %s"), error->message);
1efd99
+        }
1efd99
         g_clear_error(&error);
1efd99
         goto retry_dialog;
1efd99
     }
1efd99
-- 
1efd99
2.12.0
1efd99