mirror of
https://gitlab.xiph.org/xiph/ezstream.git
synced 2024-11-03 04:17:18 -05:00
Return a proper error message when there's no more data to read from standard
input. git-svn-id: https://svn.xiph.org/trunk/ezstream@13997 0101bb08-14d6-0310-b084-bc0e0c8e3800
This commit is contained in:
parent
8460e4bf81
commit
1f614e6486
@ -855,7 +855,10 @@ sendStream(shout_t *shout, FILE *filepstream, const char *fileName,
|
||||
if (errno == EINTR) {
|
||||
clearerr(filepstream);
|
||||
ret = STREAM_CONT;
|
||||
} else
|
||||
} else if (errno == EBADF && isStdin)
|
||||
printf("%s: No (more) data available on standard input\n",
|
||||
__progname);
|
||||
else
|
||||
printf("%s: sendStream(): Error while reading '%s': %s\n",
|
||||
__progname, fileName, strerror(errno));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user