Mercurial > pidgin
changeset 14680:fa285d018c71
[gaim-migrate @ 17432]
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.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 04 Oct 2006 20:31:44 +0000 |
parents | c1253e944cd0 |
children | 2c1781ea074c |
files | console/libgnt/gntmain.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/console/libgnt/gntmain.c Wed Oct 04 18:13:22 2006 +0000 +++ b/console/libgnt/gntmain.c Wed Oct 04 20:31:44 2006 +0000 @@ -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)