changeset 11021:dd5c802baf7b

[gaim-migrate @ 12892] sf patch #1223464, from Richard Laager "Buddy Icon File Creation Error Logging" committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 22 Jun 2005 23:03:07 +0000
parents 407e47f580e4
children 4febc4df0eb8
files src/buddyicon.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/buddyicon.c	Wed Jun 22 22:59:01 2005 +0000
+++ b/src/buddyicon.c	Wed Jun 22 23:03:07 2005 +0000
@@ -238,6 +238,11 @@
 		fwrite(data, 1, len, file);
 		fclose(file);
 	}
+	else
+	{
+		gaim_debug_error("buddy icons", "Unable to create file %s: %s\n",
+						 filename, strerror(errno));
+	}
 
 	gaim_signal_emit(gaim_buddy_icons_get_handle(), "buddy-icon-cached",
 					 icon, buddy, filename, old_icon);