Improve message

This commit is contained in:
Owen Mansel-Chan
2023-10-04 11:07:19 +01:00
parent 567052f35e
commit bd2c49fcf0

View File

@@ -34,7 +34,7 @@ autoformat:
check-formatting:
@output=$$(find . -path '**/vendor' -prune -or -type f -iname '*.go' ! -empty -print0 | xargs -0 grep -L "//\s*autoformat-ignore" | xargs gofmt -l 2>&1); \
if [ -n "$$output" ]; then \
echo "The following files need to be reformatted using gofmt:"; \
echo "The following files need to be reformatted using gofmt or have compilation errors:"; \
echo "$$output"; \
fi; \
test -z "$$output"