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) (#488)

* feature

Signed-off-by: Matt Condino <[email protected]>
(cherry picked from commit f985e67)

Co-authored-by: Matt Condino <[email protected]>
  • Loading branch information
mergify[bot] and mwcondino authored May 10, 2024
1 parent b23ccc9 commit c5e554a
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 @@ -171,6 +171,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 c5e554a

Please sign in to comment.