Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
17769:21773944db4b | 17770:efb5d0fe4895 |
---|---|
461 { | 461 { |
462 PurpleConnection *gc = data; | 462 PurpleConnection *gc = data; |
463 JabberStream *js = gc->proto_data; | 463 JabberStream *js = gc->proto_data; |
464 | 464 |
465 if (source < 0) { | 465 if (source < 0) { |
466 purple_connection_error(gc, _("Couldn't connect to host")); | 466 gchar *tmp; |
467 tmp = g_strdup_printf(_("Could not establish a connection with the server:\n%s"), | |
468 error); | |
469 purple_connection_error(gc, tmp); | |
470 g_free(tmp); | |
467 return; | 471 return; |
468 } | 472 } |
469 | 473 |
470 js->fd = source; | 474 js->fd = source; |
471 | 475 |