Be more specific in error messages for easier debugging
Yes, I'm looking at you, JENKINS!
This commit is contained in:
@@ -29,7 +29,7 @@ GOFMT="gofmt" # we prefer to not use the -s flag, which is pretty annoying...
|
||||
bad_files=$(find_files | xargs $GOFMT -l)
|
||||
if [[ -n "${bad_files}" ]]; then
|
||||
echo 'FAIL'
|
||||
echo 'The following files are not properly formatted:'
|
||||
echo 'The following golang files are not properly formatted:'
|
||||
echo "${bad_files}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user