diff options
author | Andreas Gruenbacher <agruen@gnu.org> | 2018-01-23 11:01:47 +0100 |
---|---|---|
committer | Andreas Gruenbacher <agruen@gnu.org> | 2018-01-23 11:01:47 +0100 |
commit | 6a737fca57002dbfb48c8da9546d2ba444b3275d (patch) | |
tree | a008854101bc75b461f8c9b76f6fd40d308cd059 /src/pch.c | |
parent | 592e1f9163d6261359aa87c2c99d411c0dacf6f3 (diff) | |
download | patch-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.
Diffstat (limited to 'src/pch.c')
-rw-r--r-- | src/pch.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |