From 6a737fca57002dbfb48c8da9546d2ba444b3275d Mon Sep 17 00:00:00 2001 From: Andreas Gruenbacher Date: Tue, 23 Jan 2018 11:01:47 +0100 Subject: Clarify the error messages for malformed normal diff patches * src/pch.c (another_hunk): Clarify the error messages for malformed normal diff patches. --- src/pch.c | 4 ++-- 1 file 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; -- cgit v1.2.1