summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-07-05 16:55:03 (GMT)
committerBrad King <brad.king@kitware.com>2017-07-05 16:55:03 (GMT)
commit16d495253b45ae802ac0d78bc33f6caaa5285370 (patch)
tree512766767bbff3468aa7f57eef192f14645b2329 /Utilities
parent295d9bf2bd795da551d5ac266c53eeac2de45a71 (diff)
downloadCMake-16d495253b45ae802ac0d78bc33f6caaa5285370.zip
CMake-16d495253b45ae802ac0d78bc33f6caaa5285370.tar.gz
CMake-16d495253b45ae802ac0d78bc33f6caaa5285370.tar.bz2
clang-format.bash: Fix error message when clang-format is not found
Do not refer to a variable we just determined is empty to get the name of the tool for the error message. Just hard-code the name.
Diffstat (limited to 'Utilities')
-rwxr-xr-xUtilities/Scripts/clang-format.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/Scripts/clang-format.bash b/Utilities/Scripts/clang-format.bash
index edcda77..428a9e4 100755
--- a/Utilities/Scripts/clang-format.bash
+++ b/Utilities/Scripts/clang-format.bash
@@ -92,7 +92,7 @@ fi
# Verify that we have a tool.
if ! type -p "$clang_format" >/dev/null; then
- echo "Unable to locate '$clang_format'"
+ echo "Unable to locate a 'clang-format' tool."
exit 1
fi