From: <sa...@us...> - 2006-10-04 20:31:48
|
Revision: 17432 http://svn.sourceforge.net/gaim/?rev=17432&view=rev Author: sadrul Date: 2006-10-04 13:31:44 -0700 (Wed, 04 Oct 2006) Log Message: ----------- If exiting, print a more helpful error message. I once got an "Invalid file descriptor" (or something similar) once, which I don't know why would happen. Modified Paths: -------------- trunk/console/libgnt/gntmain.c Modified: trunk/console/libgnt/gntmain.c =================================================================== --- trunk/console/libgnt/gntmain.c 2006-10-04 19:05:22 UTC (rev 17431) +++ trunk/console/libgnt/gntmain.c 2006-10-04 20:31:44 UTC (rev 17432) @@ -772,7 +772,8 @@ if (rd < 0) { endwin(); - printf("ERROR!\n"); + printf("ERROR: %s\n", strerror(errno)); + printf("File descriptor is: %d\n\nGIOChannel is: %p", STDIN_FILENO, source); exit(1); } else if (rd == 0) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |