changeset 27515: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 381acdb3cedc
children 4cddfd2d06be 15cde23b43bc 8b452039c329
files libpurple/protocols/yahoo/libymsg.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/libymsg.c	Sun Jul 12 17:59:23 2009 +0000
+++ b/libpurple/protocols/yahoo/libymsg.c	Sun Jul 12 18:48:59 2009 +0000
@@ -1724,8 +1724,8 @@
 					break;
 			}
 			if(error_reason) {
-				purple_debug_error("yahoo", "Authentication error: %s\n",
-				                   error_reason);
+				purple_debug_error("yahoo", "Authentication error: %s. "
+				                   "Code %d\n", error_reason, response_no);
 				purple_connection_error_reason(gc, error, error_reason);
 				g_free(error_reason);
 				g_free(auth_data->seed);
@@ -1829,8 +1829,8 @@
 					error = PURPLE_CONNECTION_ERROR_OTHER_ERROR;
 					break;
 			}
-			purple_debug_error("yahoo", "Authentication error: %s\n",
-			                   error_reason);
+			purple_debug_error("yahoo", "Authentication error: %s. Code %d\n",
+			                   error_reason, response_no);
 			purple_connection_error_reason(gc, error, error_reason);
 			g_free(error_reason);
 			g_free(auth_data->seed);