Skip to content

Commit

Permalink
server/app.py: Fix bug that only error line# 1-9 get returned
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Bai committed Aug 12, 2019
1 parent 53cd809 commit 16206c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/app.py
Expand Up @@ -72,7 +72,7 @@ def fcc_to_ignition():
errmsg = stdout.decode()

# format error message
line_no_info = re.findall(r'[ |\n]*line \d:', errmsg)
line_no_info = re.findall(r'[ |\n]*line \d+:', errmsg)
err_lines = []
for section in line_no_info:
errmsg = errmsg.replace(section, '\n' + section.strip())
Expand Down

0 comments on commit 16206c6

Please sign in to comment.