Fix backtrace on bisonpre error

This commit is contained in:
Wilson Snyder 2021-04-05 20:05:04 -04:00
parent efc116323b
commit cb95a7294f

View File

@ -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")
######################################################################