summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@gnu.org>2018-01-23 11:01:47 +0100
committerAndreas Gruenbacher <agruen@gnu.org>2018-01-23 11:01:47 +0100
commit6a737fca57002dbfb48c8da9546d2ba444b3275d (patch)
treea008854101bc75b461f8c9b76f6fd40d308cd059
parent592e1f9163d6261359aa87c2c99d411c0dacf6f3 (diff)
downloadpatch-6a737fca57002dbfb48c8da9546d2ba444b3275d.tar.gz
Clarify the error messages for malformed normal diff patches
* src/pch.c (another_hunk): Clarify the error messages for malformed normal diff patches.
-rw-r--r--src/pch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pch.c b/src/pch.c
index 45613440..ff9ed2c 100644
--- a/src/pch.c
+++ b/src/pch.c
@@ -1847,7 +1847,7 @@ another_hunk (enum diff difftype, bool rev)
fatal ("unexpected end of file in patch at line %s",
format_linenum (numbuf0, p_input_line));
if (buf[0] != '<' || (buf[1] != ' ' && buf[1] != '\t'))
- fatal ("'<' expected at line %s of patch",
+ fatal ("'<' followed by space or tab expected at line %s of patch",
format_linenum (numbuf0, p_input_line));
chars_read -= 2 + (i == p_ptrn_lines && incomplete_line ());
p_len[i] = chars_read;
@@ -1892,7 +1892,7 @@ another_hunk (enum diff difftype, bool rev)
fatal ("unexpected end of file in patch at line %s",
format_linenum (numbuf0, p_input_line));
if (buf[0] != '>' || (buf[1] != ' ' && buf[1] != '\t'))
- fatal ("'>' expected at line %s of patch",
+ fatal ("'>' followed by space or tab expected at line %s of patch",
format_linenum (numbuf0, p_input_line));
chars_read -= 2 + (i == p_end && incomplete_line ());
p_len[i] = chars_read;