[Spice-devel] [PATCH spice-gtk] session: prefix proxy lookup errors

Marc-André Lureau marcandre.lureau at gmail.com
Thu Jul 3 09:49:04 PDT 2014


Proxy errors are already reported with G_IO_ERROR_PROXY messages,
however proxy name lookup error can be more detailed.

https://bugzilla.redhat.com/show_bug.cgi?id=1115986
---
 gtk/spice-session.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gtk/spice-session.c b/gtk/spice-session.c
index fed57a4..7aef787 100644
--- a/gtk/spice-session.c
+++ b/gtk/spice-session.c
@@ -1730,6 +1730,7 @@ static void proxy_lookup_ready(GObject *source_object, GAsyncResult *result,
     addresses = g_resolver_lookup_by_name_finish(G_RESOLVER(source_object),
                                                  result, &open_host->error);
     if (addresses == NULL || open_host->error) {
+        g_prefix_error(&open_host->error, "SPICE proxy: ");
         coroutine_yieldto(open_host->from, NULL);
         return;
     }
-- 
1.9.3



More information about the Spice-devel mailing list