Mercurial > pidgin
changeset 20777:c40416c4eca6
Add reasons to a couple of new errors (and to a commented-out one, for
completeness).
author | Will Thompson <will.thompson@collabora.co.uk> |
---|---|
date | Fri, 05 Oct 2007 16:50:54 +0000 |
parents | f3cfcbbac3d8 |
children | 8174f6999308 871a67790848 |
files | libpurple/protocols/bonjour/bonjour.c libpurple/protocols/msn/contact.c libpurple/protocols/yahoo/ycht.c |
diffstat | 3 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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."));
--- 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; } }
--- 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;