]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
chore: Improve hint in source code format error message
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 27 Feb 2022 13:09:43 +0000 (14:09 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 27 Feb 2022 18:57:46 +0000 (19:57 +0100)
misc/format-files

index 44340b9f657fcdf0ed73ff274eba25b92a1ea263..6671f8e1d0cb952a99e929f135e1a256663d71e8 100755 (executable)
@@ -44,7 +44,9 @@ for file in "$@"; do
     if [ -n "$check" ]; then
         status=1
         echo "Error: $file not formatted with Clang-Format"
-        echo 'Run "make format" or apply this diff:'
+        echo
+        echo 'Please run "make format" (or "ninja format"), or apply this diff:'
+        echo
         git diff $cf_color --no-index "$file" "$tmp_file" \
             | sed -E -e "s!^---.*!--- a/$file!" \
                      -e "s!^\+\+\+.*!+++ b/$file!" \