Improved error message upon line reading failure in head(1) and tail(1).
This commit is contained in:
parent
d6f9505d3b
commit
7d4c79bc8c
|
@ -42,7 +42,7 @@ bool processfp(const char* inputname, FILE* fp)
|
|||
if ( linelen < 0 )
|
||||
{
|
||||
if ( feof(fp) ) { break; }
|
||||
error(1, errno, "%s", inputname);
|
||||
error(1, errno, "error reading line: %s", inputname);
|
||||
}
|
||||
if ( specialleading )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue