Improved error message upon line reading failure in head(1) and tail(1).

This commit is contained in:
Jonas 'Sortie' Termansen 2012-03-07 15:52:59 +01:00
parent d6f9505d3b
commit 7d4c79bc8c
1 changed files with 1 additions and 1 deletions

View File

@ -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 )
{