Mercurial > pidgin.yaz
diff src/protocols/jabber/buddy.c @ 13633:c86c6f0505ea
[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 <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Fri, 14 Apr 2006 19:08:59 +0000 |
parents | 4d44d7ad536e |
children | d12bbe6da705 |
line wrap: on
line diff
--- 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; }