浏览代码

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.
Brad King 8 年之前
父节点
当前提交
16d495253b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Utilities/Scripts/clang-format.bash

+ 1 - 1
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