changeset 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 c4a5d8950d8c
children 8872789902a1
files src/protocols/jabber/buddy.c
diffstat 1 files changed, 8 insertions(+), 3 deletions(-) [+]
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;
 	}