From f6db59f955dbd2b55d4aba26c093eaf3c0eca9bf Mon Sep 17 00:00:00 2001 From: Elias Steurer Date: Thu, 29 Oct 2020 19:52:28 +0100 Subject: [PATCH] Add print for git diff --- Tools/format-cmake.py | 1 + Tools/format-cpp.py | 1 + 2 files changed, 2 insertions(+) diff --git a/Tools/format-cmake.py b/Tools/format-cmake.py index 67bbd7be..70d486f8 100644 --- a/Tools/format-cmake.py +++ b/Tools/format-cmake.py @@ -17,4 +17,5 @@ output = subprocess.check_output("git diff", shell=True) if output: print("Git diff is not empty. This means your CMakeLists.txt file was not formatted via %s!" % executable) + print(output) sys.exit(1) diff --git a/Tools/format-cpp.py b/Tools/format-cpp.py index 40e81f99..bc198fdd 100644 --- a/Tools/format-cpp.py +++ b/Tools/format-cpp.py @@ -18,4 +18,5 @@ output = subprocess.check_output("git diff", shell=True) if output: print("Git diff is not empty. This means your code was not formatted via %s!" % executable) + print(output) sys.exit(1)