mirror of
https://github.com/public-apis/public-apis
synced 2024-11-21 10:04:15 +01:00
Create a error message generator
This commit is contained in:
parent
c659e65677
commit
2501df6b93
@ -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}'
|
||||||
|
Loading…
Reference in New Issue
Block a user