summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNigel Babu <nigelb@redhat.com>2018-09-13 14:47:21 +0530
committerNigel Babu <nigelb@redhat.com>2018-09-13 17:02:12 +0530
commite6b2fc7012dba75199a4fbb3767178112b4b2bcf (patch)
treed3a311bcc6f2fcb8a3ad29cc3b6569ff48e987cc
parente12e424e36cdb1ba888b35a5787b488707238f08 (diff)
clang-format: Be more verbose
Change-Id: I2e89594b0c7f2501958bfedf3ae5a23242b0b92b
-rw-r--r--build-gluster-org/scripts/clang-format.py6
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)