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 name: verify no code was generated
command: | command: |
if [[ -z $(git status --porcelain) ]]; then if [[ -z $(git status --porcelain) ]]; then
echo "clean" echo "Git directory is clean."
else 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 git status --porcelain
exit 1 exit 1
fi fi