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

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