Skip to content

Commit

Permalink
Show the actual location of the error
Browse files Browse the repository at this point in the history
  • Loading branch information
wtdcode committed Jun 7, 2022
1 parent 58b0729 commit 974c434
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ctypeslib/codegen/clangparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ def _parse_tu_diagnostics(tu, input_filename):
return
errors = []
for x in tu.diagnostics:
msg = "{} ({}:{}:{})".format(
x.spelling, input_filename,
x.location.line, x.location.column)
msg = "{} ({}:{}:{}) during processing {}".format(
x.spelling, x.location.file,
x.location.line, x.location.column, input_filename)
log.warning(msg)
if x.severity > 2:
errors.append(msg)
Expand Down

0 comments on commit 974c434

Please sign in to comment.