Skip to content

Commit

Permalink
clearer error and suggestion when c-analyzer cannot read ignored.tsv (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
iritkatriel authored Jan 30, 2025
1 parent a810cb8 commit 5ab9604
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Tools/c-analyzer/c_analyzer/datafiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5ab9604

Please sign in to comment.