From 7d4c79bc8c4c355a4dce7b2049b7a7a37d8e347f Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Wed, 7 Mar 2012 15:52:59 +0100 Subject: [PATCH] Improved error message upon line reading failure in head(1) and tail(1). --- utils/tail.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/tail.cpp b/utils/tail.cpp index c73ffc4d..cb0ce0ee 100644 --- a/utils/tail.cpp +++ b/utils/tail.cpp @@ -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 ) {