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]>
(cherry picked from commit f985e67)
  • Loading branch information
mwcondino authored and mergify[bot] committed May 1, 2024
1 parent 4912a29 commit fb4debd
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 fb4debd

Please sign in to comment.