message: tools(//tools/linter): Fix diff command for C++ to actually throw errors
diff: @@ -12,7 +12,7 @@ def lint(target_files):
  for f in target_files:
  with open("/tmp/changes.txt", "w") as changes:
  subprocess.run(['clang-format', f], stdout=changes)
  - output = subprocess.run(["git", "diff", "-u", "--color", f, "/tmp/changes.txt"])
  + output = subprocess.run(["git", "diff", "-u", "--color", "--exit-code", f, "/tmp/changes.txt"])
  if output.returncode != 0:
  failure = True
  return failure
  @@ -32,7 +32,8 @@ if __name__ == "__main__":
  path = BAZEL_ROOT + '/' + p[2:]
  files = utils.glob_files(path, VALID_CPP_FILE_TYPES)
  if files != []:
  - failure = lint(files)
  + if lint(files):
  + failure = True
  if failure:
  print("\033[91mERROR:\033[0m Some files do not conform to style guidelines")
  sys.exit(1)
  