mirror of
https://github.com/FranP-code/public-apis.git
synced 2025-10-13 00:03:04 +00:00
Create a error message generator
This commit is contained in:
@@ -23,3 +23,8 @@ title_links = []
|
||||
anchor_re = re.compile(anchor + '\s(.+)')
|
||||
section_title_re = re.compile('\*\s\[(.*)\]')
|
||||
link_re = re.compile('\[(.+)\]\((http.*)\)')
|
||||
|
||||
|
||||
def error_message(line_number: int, message: str) -> str:
|
||||
line = line_number + 1
|
||||
return f'(L{line:03d}) {message}'
|
||||
|
||||
Reference in New Issue
Block a user