From cb95a7294f647aa16f4d8fa5989fe4fadf6f0f1d Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Mon, 5 Apr 2021 20:05:04 -0400 Subject: [PATCH] Fix backtrace on bisonpre error --- src/bisonpre | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bisonpre b/src/bisonpre index 7407f024f..3038f2a06 100755 --- a/src/bisonpre +++ b/src/bisonpre @@ -172,8 +172,8 @@ def warning_check(filename): if re.search(r'(conflicts|warning:|^useless)', line, flags=re.IGNORECASE): - sys.exit("%Error: " + filename + ":" + linenum + ": " + line + - "\n") + sys.exit("%Error: " + filename + ":" + str(linenum) + ": " + + line + "\n") ######################################################################