1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

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

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