From 70fe981f4fa66e0590f867519d5cb02c3a31dbf4 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 28 Dec 2019 00:28:03 +0000 Subject: [PATCH] Error handling: Trim the `bad escape' message.e Do not print the whole line, only the next 5 chars (say) - and, also, not any newlines. Signed-off-by: Ian Jackson --- generate | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/generate b/generate index 209a1f3..62e915f 100755 --- a/generate +++ b/generate @@ -296,7 +296,8 @@ sub process_input_mk ($$$$) { od $_; $_ = ''; } else { - err "bad &-escape \`$$esclitr$_'"; + m{^.{0,5}}; + err "bad &-escape \`$$esclitr$&'"; } } if (defined $buffering_output) { -- 2.30.2