Unverified Commit 2501df6b authored by Matheus Felipe's avatar Matheus Felipe
Browse files

Create a error message generator

parent c659e656
...@@ -23,3 +23,8 @@ title_links = [] ...@@ -23,3 +23,8 @@ title_links = []
anchor_re = re.compile(anchor + '\s(.+)') anchor_re = re.compile(anchor + '\s(.+)')
section_title_re = re.compile('\*\s\[(.*)\]') section_title_re = re.compile('\*\s\[(.*)\]')
link_re = re.compile('\[(.+)\]\((http.*)\)') link_re = re.compile('\[(.+)\]\((http.*)\)')
def error_message(line_number: int, message: str) -> str:
line = line_number + 1
return f'(L{line:03d}) {message}'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment