diff --git a/utils/check-style-clang-format.py b/utils/check-style-clang-format.py index 471586204..c0729d669 100755 --- a/utils/check-style-clang-format.py +++ b/utils/check-style-clang-format.py @@ -769,7 +769,9 @@ if __name__ == "__main__": print(e) sys.exit(1) - if all_checks_successful: - sys.exit(0) - else: + if not all_checks_successful: + if args.verbose: + print("") + print('NOTE: To fix the files automatically, run this script with the flag "--fix"') + sys.exit(1)