add better error message when 'make fmtcheck generate' fails

This commit is contained in:
Alvin Huang 2020-04-06 10:49:55 -04:00
parent 21b78a15be
commit 2d2369e3b1
1 changed files with 2 additions and 2 deletions

View File

@ -25,9 +25,9 @@ jobs:
name: verify no code was generated
command: |
if [[ -z $(git status --porcelain) ]]; then
echo "clean"
echo "Git directory is clean."
else
echo "dirty"
echo "Git is dirty. Run `make fmtcheck` and `make generate` locally and commit any formatting fixes or generated code."
git status --porcelain
exit 1
fi