From 5119d00374ac7bdab03f8b86959959b8e7b4329b Mon Sep 17 00:00:00 2001 From: Antonio Cardace Date: Wed, 2 Sep 2020 18:24:09 +0200 Subject: [PATCH] scripts: better error message for nm-code-format.sh Signed-off-by: Antonio Cardace --- contrib/scripts/nm-code-format.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/scripts/nm-code-format.sh b/contrib/scripts/nm-code-format.sh index 660309a73b..202daa7fc1 100755 --- a/contrib/scripts/nm-code-format.sh +++ b/contrib/scripts/nm-code-format.sh @@ -63,7 +63,7 @@ for f in "${FILES[@]}"; do clang-format $f > $TMP_FILE git --no-pager diff $f $TMP_FILE || true rm $TMP_FILE - echo "Error: $f code-style is wrong, fix it by running '$(basename $0) -i'" + echo "Error: $(basename $f) code-style is wrong, fix it by running '$0 -i $f)" exit 1 fi else