OSDN Git Service

t0021/rot13-filter: improve error message
authorChristian Couder <christian.couder@gmail.com>
Sun, 5 Nov 2017 21:38:32 +0000 (22:38 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 7 Nov 2017 00:54:41 +0000 (09:54 +0900)
commit00df039faa32a278029d1af27851e6fa15f4fb27
tree815dc3df7b2f9d82b6b4f6358a4cf5582f9c3ac4
parented17d26245b27df1694a4efaf386e6924aefaee5
t0021/rot13-filter: improve error message

If there is no new line at the end of something it receives,
the packet_txt_read() function die()s, but it's difficult to
debug without much context.

Let's give a bit more information when that happens.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0021/rot13-filter.pl