diff options
Diffstat (limited to 'build-gluster-org/scripts')
-rw-r--r-- | build-gluster-org/scripts/clang-format.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/build-gluster-org/scripts/clang-format.py b/build-gluster-org/scripts/clang-format.py index 9bea1da..ebbd2c4 100644 --- a/build-gluster-org/scripts/clang-format.py +++ b/build-gluster-org/scripts/clang-format.py @@ -3,8 +3,10 @@ import subprocess output = subprocess.check_output(["git-clang-format", "HEAD~", "--diff"]) -if output not in ['no modified files to format\n', 'clang-format did not modify any files\n']: - print "Run git clang-format, then commit.\n" +if output not in ['no modified files to format\n', + 'clang-format did not modify any files\n']: + print(output) + print("The above patch to be applied to pass clang-format") exit(1) else: exit(0) |