diff options
author | Brad King <brad.king@kitware.com> | 2017-07-05 16:55:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-07-05 16:55:03 (GMT) |
commit | 16d495253b45ae802ac0d78bc33f6caaa5285370 (patch) | |
tree | 512766767bbff3468aa7f57eef192f14645b2329 /Utilities | |
parent | 295d9bf2bd795da551d5ac266c53eeac2de45a71 (diff) | |
download | CMake-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-x | Utilities/Scripts/clang-format.bash | 2 |
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 |