# HG changeset patch # User Mark Doliner # Date 1181197357 0 # Node ID efb5d0fe489501cb473d836faafae6c1dbb0cb02 # Parent 21773944db4b90f1ff152c5b9c012ddd7efac9f3 Better error message for when a Jabber connection fails diff -r 21773944db4b -r efb5d0fe4895 libpurple/protocols/jabber/jabber.c --- a/libpurple/protocols/jabber/jabber.c Thu Jun 07 05:28:05 2007 +0000 +++ b/libpurple/protocols/jabber/jabber.c Thu Jun 07 06:22:37 2007 +0000 @@ -463,7 +463,11 @@ JabberStream *js = gc->proto_data; if (source < 0) { - purple_connection_error(gc, _("Couldn't connect to host")); + gchar *tmp; + tmp = g_strdup_printf(_("Could not establish a connection with the server:\n%s"), + error); + purple_connection_error(gc, tmp); + g_free(tmp); return; } diff -r 21773944db4b -r efb5d0fe4895 libpurple/protocols/jabber/si.c --- a/libpurple/protocols/jabber/si.c Thu Jun 07 05:28:05 2007 +0000 +++ b/libpurple/protocols/jabber/si.c Thu Jun 07 06:22:37 2007 +0000 @@ -105,6 +105,9 @@ jsx->connect_data = NULL; if(source < 0) { + purple_debug_warning("jabber", + "si connection failed, jid was %s, host was %s, error was %s\n", + streamhost->jid, streamhost->host, error_message); jsx->streamhosts = g_list_remove(jsx->streamhosts, streamhost); g_free(streamhost->jid); g_free(streamhost->host);