mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
clearer error and suggestion when c-analyzer cannot read ignored.tsv (#129423)
This commit is contained in:
parent
a810cb89f1
commit
5ab9604683
1 changed files with 6 additions and 1 deletions
|
@ -104,7 +104,12 @@ def _iter_ignored(infile, relroot):
|
|||
for v in varidinfo)
|
||||
if reason in bogus:
|
||||
reason = None
|
||||
varid = _info.DeclID.from_row(varidinfo)
|
||||
try:
|
||||
varid = _info.DeclID.from_row(varidinfo)
|
||||
except BaseException as e:
|
||||
e.add_note(f"Error occurred when processing row {varidinfo} in {infile}.")
|
||||
e.add_note(f"Could it be that you added a row which is not tab-delimited?")
|
||||
raise e
|
||||
varid = varid.fix_filename(relroot, formatted=False, fixroot=False)
|
||||
yield varid, reason
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue