We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46b976e commit eafe421Copy full SHA for eafe421
ament_clang_tidy/ament_clang_tidy/main.py
@@ -180,6 +180,7 @@ def start_subprocess(full_cmd):
180
print('The invocation of "%s" failed with error code %d: %s' %
181
(os.path.basename(clang_tidy_bin), e.returncode, e),
182
file=sys.stderr)
183
+ output = e.output.decode()
184
return output
185
186
files = []
@@ -268,6 +269,9 @@ def start_subprocess(full_cmd):
268
269
with open(args.xunit_file, 'w') as f:
270
f.write(xml)
271
272
+ if output:
273
+ sys.exit(1)
274
+
275
276
def find_executable(file_names):
277
paths = os.getenv('PATH').split(os.path.pathsep)
0 commit comments