From 3a9e115423d460db9bfb01adfe18593d059d05d8 Mon Sep 17 00:00:00 2001 From: Christoph Blecker Date: Wed, 7 Feb 2018 21:39:49 -0800 Subject: [PATCH] Route verify-gofmt output to stderr --- hack/verify-gofmt.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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