# HG changeset patch # User Richard Laager # Date 1145041739 0 # Node ID c86c6f0505eac1945e5d390ab8bd81bfc0324fd6 # Parent c4a5d8950d8c1d9826e99aa58c9d72860e57b740 [gaim-migrate @ 16031] Patch from Bj«Órn Voigt: "Now the error dialog in the attached patch has everything what we want (a title, a generic message and a detailed message with an error code)." committer: Tailor Script diff -r c4a5d8950d8c -r c86c6f0505ea src/protocols/jabber/buddy.c --- a/src/protocols/jabber/buddy.c Wed Apr 12 04:00:19 2006 +0000 +++ b/src/protocols/jabber/buddy.c Fri Apr 14 19:08:59 2006 +0000 @@ -1376,10 +1376,15 @@ return; if(!(type = xmlnode_get_attrib(packet, "type")) || !strcmp(type, "error")) { + char *msg = jabber_parse_error(js, packet); + + if(!msg) + msg = g_strdup(_("Unknown error")); + gaim_notify_error(js->gc, _("Directory Query Failed"), - _("Could not query the directory server. Either " - "the Jabber user directory specified is invalid or " - "directory server could not be reached."), NULL); + _("Could not query the directory server."), msg); + g_free(msg); + return; }