add better error message when 'make fmtcheck generate' fails
This commit is contained in:
parent
21b78a15be
commit
2d2369e3b1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue