From e6b2fc7012dba75199a4fbb3767178112b4b2bcf Mon Sep 17 00:00:00 2001 From: Nigel Babu Date: Thu, 13 Sep 2018 14:47:21 +0530 Subject: clang-format: Be more verbose Change-Id: I2e89594b0c7f2501958bfedf3ae5a23242b0b92b --- build-gluster-org/scripts/clang-format.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'build-gluster-org/scripts') 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) -- cgit