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)
|
bad_files=$(find_files | xargs $GOFMT -l)
|
||||||
if [[ -n "${bad_files}" ]]; then
|
if [[ -n "${bad_files}" ]]; then
|
||||||
echo 'FAIL'
|
echo 'FAIL'
|
||||||
echo 'The following files are not properly formatted:'
|
echo 'The following golang files are not properly formatted:'
|
||||||
echo "${bad_files}"
|
echo "${bad_files}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ bad_files=$(
|
|||||||
|
|
||||||
if [[ -n "${bad_files}" ]]; then
|
if [[ -n "${bad_files}" ]]; then
|
||||||
echo 'FAIL'
|
echo 'FAIL'
|
||||||
echo 'The following files are not properly formatted:'
|
echo 'The following yaml files are not properly formatted:'
|
||||||
echo "${bad_files}"
|
echo "${bad_files}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user