Route verify-gofmt output to stderr

This commit is contained in:
Christoph Blecker 2018-02-07 21:39:49 -08:00
parent 6375e2b24d
commit 3a9e115423
No known key found for this signature in database
GPG Key ID: B34A59A9D39F838B

View File

@ -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