# HG changeset patch # User Will Thompson # Date 1191603054 0 # Node ID c40416c4eca674de16ed39a78c3e6fbfdb419c7c # Parent f3cfcbbac3d8d494600281fdf38aa440bb17eb12 Add reasons to a couple of new errors (and to a commented-out one, for completeness). diff -r f3cfcbbac3d8 -r c40416c4eca6 libpurple/protocols/bonjour/bonjour.c --- a/libpurple/protocols/bonjour/bonjour.c Fri Oct 05 15:50:17 2007 +0000 +++ b/libpurple/protocols/bonjour/bonjour.c Fri Oct 05 16:50:54 2007 +0000 @@ -103,7 +103,7 @@ #ifdef _WIN32 if (!dns_sd_available()) { gc->wants_to_die = TRUE; - purple_connection_error(gc, + purple_connection_error_reason(gc, PURPLE_REASON_OTHER_ERROR, _("The Apple Bonjour For Windows toolkit wasn't found, see the FAQ at: " "http://developer.pidgin.im/wiki/Using%20Pidgin#CanIusePidginforBonjourLink-LocalMessaging" " for more information.")); diff -r f3cfcbbac3d8 -r c40416c4eca6 libpurple/protocols/msn/contact.c --- a/libpurple/protocols/msn/contact.c Fri Oct 05 15:50:17 2007 +0000 +++ b/libpurple/protocols/msn/contact.c Fri Oct 05 16:50:54 2007 +0000 @@ -945,7 +945,7 @@ msn_get_address_book(contact, NULL, NULL); */ msn_session_disconnect(session); - purple_connection_error(session->account->gc, _("Unable to retrieve MSN Address Book")); + purple_connection_error_reason(session->account->gc, PURPLE_REASON_NETWORK_ERROR, _("Unable to retrieve MSN Address Book")); return FALSE; } } diff -r f3cfcbbac3d8 -r c40416c4eca6 libpurple/protocols/yahoo/ycht.c --- a/libpurple/protocols/yahoo/ycht.c Fri Oct 05 15:50:17 2007 +0000 +++ b/libpurple/protocols/yahoo/ycht.c Fri Oct 05 16:50:54 2007 +0000 @@ -285,7 +285,8 @@ else if (ret <= 0) { /* TODO: error handling */ /* - purple_connection_error(purple_account_get_connection(irc->account), + purple_connection_error_reason(purple_account_get_connection(irc->account), + PURPLE_REASON_NETWORK_ERROR, _("Server has disconnected")); */ return;