diff --git a/hack/verify-gofmt.sh b/hack/verify-gofmt.sh index eb9d17601c5..3ec0e61d69f 100755 --- a/hack/verify-gofmt.sh +++ b/hack/verify-gofmt.sh @@ -54,6 +54,8 @@ find_files() { # have failed before getting to the "echo" in the block below. diff=$(find_files | xargs ${gofmt} -d -s 2>&1) || true if [[ -n "${diff}" ]]; then - echo "${diff}" + echo "${diff}" >&2 + echo >&2 + echo "Run ./hack/update-gofmt.sh" >&2 exit 1 fi