From: <rl...@us...> - 2006-04-14 19:09:11
|
Revision: 16031 Author: rlaager Date: 2006-04-14 12:08:59 -0700 (Fri, 14 Apr 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16031&view=rev Log Message: ----------- Patch from Bj?\195?\182rn 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)." Modified Paths: -------------- trunk/src/protocols/jabber/buddy.c Modified: trunk/src/protocols/jabber/buddy.c =================================================================== --- trunk/src/protocols/jabber/buddy.c 2006-04-12 04:00:19 UTC (rev 16030) +++ trunk/src/protocols/jabber/buddy.c 2006-04-14 19:08:59 UTC (rev 16031) @@ -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; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |