From c8b7b646a2c992f0c60c19e9b3d60727343f9e04 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= <marcandre.lureau@redhat.com>
Date: Thu, 3 Jul 2014 18:48:31 +0200
Subject: [PATCH] session: prefix proxy lookup errors
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 4032ebe..34dfd8c 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