diff libpurple/protocols/jabber/jabber.c @ 17770:efb5d0fe4895

Better error message for when a Jabber connection fails
author Mark Doliner <mark@kingant.net>
date Thu, 07 Jun 2007 06:22:37 +0000
parents 37a2d6eadd34
children 13f7a06c240d 24d035ad12cd
line wrap: on
line diff
--- 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;
 	}