Skip to content

Commit cf020ca

Browse files
committed
add note to exception in c-analyzer
1 parent e53d19a commit cf020ca

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Tools/c-analyzer/c_parser/info.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,11 @@ class DeclID(namedtuple('DeclID', 'filename funcname name')):
204204
@classmethod
205205
def from_row(cls, row, **markers):
206206
row = _tables.fix_row(row, **markers)
207-
return cls(*row)
207+
try:
208+
return cls(*row)
209+
except BaseException as e:
210+
e.add_note(f"when processing row={row}")
211+
raise
208212

209213
# We have to provide _make() because we implemented __new__().
210214

0 commit comments

Comments
 (0)