summaryrefslogtreecommitdiff
path: root/Utilities/Scripts
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-07-05 12:55:03 -0400
committerBrad King <brad.king@kitware.com>2017-07-05 12:55:03 -0400
commit16d495253b45ae802ac0d78bc33f6caaa5285370 (patch)
tree512766767bbff3468aa7f57eef192f14645b2329 /Utilities/Scripts
parent295d9bf2bd795da551d5ac266c53eeac2de45a71 (diff)
downloadcmake-16d495253b45ae802ac0d78bc33f6caaa5285370.tar.gz
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/Scripts')
-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 edcda77b93..428a9e48fe 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