fn: go-fmt needs to be more informative (#808)

This commit is contained in:
Tolga Ceylan
2018-03-02 10:11:25 -08:00
committed by Travis Reeder
parent a0eb75bfa5
commit 02b17d4fe5

View File

@@ -6,6 +6,7 @@ set -euo pipefail
OUT=$(find . ! \( -path ./vendor -prune \) ! \( -path ./.git -prune \) -name '*.go' -exec gofmt -l {} +)
if [ -n "$OUT" ]; then
echo "gofmt reported formatting errors in:"
echo "$OUT"
exit 1
fi