Skip to content

Commit

Permalink
ament_clang_tidy - Fix Reporting when WarningsAsErrors is specified i…
Browse files Browse the repository at this point in the history
…n config (#397)

* feature

Signed-off-by: Matt Condino <[email protected]>
  • Loading branch information
mwcondino authored Apr 30, 2024
1 parent f882118 commit f985e67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ament_clang_tidy/ament_clang_tidy/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ def start_subprocess(full_cmd):
print('The invocation of "%s" failed with error code %d: %s' %
(os.path.basename(clang_tidy_bin), e.returncode, e),
file=sys.stderr)
# Attempt to recover output, if any was found (eg - if
# WarningsAsErrors was specified in the config file).
output = e.output.decode('utf-8')
return output

files = []
Expand Down

0 comments on commit f985e67

Please sign in to comment.