Be more specific in error messages for easier debugging

Yes, I'm looking at you, JENKINS!
This commit is contained in:
James Shubin
2016-01-29 08:58:02 -05:00
parent a64b9f8e1a
commit dee8cd97c5
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -45,7 +45,7 @@ bad_files=$(
if [[ -n "${bad_files}" ]]; then
echo 'FAIL'
echo 'The following files are not properly formatted:'
echo 'The following yaml files are not properly formatted:'
echo "${bad_files}"
exit 1
fi