comparison libpurple/protocols/yahoo/libymsg.c @ 27591:f92d37b363c6

yahoo: Add the error code to the debug log.
author Paul Aurich <paul@darkrain42.org>
date Sun, 12 Jul 2009 18:48:59 +0000
parents 07d09a987b86
children a9eb6dbbba1b 15cde23b43bc
comparison
equal deleted inserted replaced
27590:381acdb3cedc 27591:f92d37b363c6
1722 error_reason = g_strdup(_("Unknown error")); 1722 error_reason = g_strdup(_("Unknown error"));
1723 error = PURPLE_CONNECTION_ERROR_OTHER_ERROR; 1723 error = PURPLE_CONNECTION_ERROR_OTHER_ERROR;
1724 break; 1724 break;
1725 } 1725 }
1726 if(error_reason) { 1726 if(error_reason) {
1727 purple_debug_error("yahoo", "Authentication error: %s\n", 1727 purple_debug_error("yahoo", "Authentication error: %s. "
1728 error_reason); 1728 "Code %d\n", error_reason, response_no);
1729 purple_connection_error_reason(gc, error, error_reason); 1729 purple_connection_error_reason(gc, error, error_reason);
1730 g_free(error_reason); 1730 g_free(error_reason);
1731 g_free(auth_data->seed); 1731 g_free(auth_data->seed);
1732 g_free(auth_data); 1732 g_free(auth_data);
1733 return; 1733 return;
1827 /* Unknown error! */ 1827 /* Unknown error! */
1828 error_reason = g_strdup(_("Unknown error")); 1828 error_reason = g_strdup(_("Unknown error"));
1829 error = PURPLE_CONNECTION_ERROR_OTHER_ERROR; 1829 error = PURPLE_CONNECTION_ERROR_OTHER_ERROR;
1830 break; 1830 break;
1831 } 1831 }
1832 purple_debug_error("yahoo", "Authentication error: %s\n", 1832 purple_debug_error("yahoo", "Authentication error: %s. Code %d\n",
1833 error_reason); 1833 error_reason, response_no);
1834 purple_connection_error_reason(gc, error, error_reason); 1834 purple_connection_error_reason(gc, error, error_reason);
1835 g_free(error_reason); 1835 g_free(error_reason);
1836 g_free(auth_data->seed); 1836 g_free(auth_data->seed);
1837 g_free(auth_data); 1837 g_free(auth_data);
1838 } 1838 }