Add output to precommit hook + better name

pull/336/head
Kieran Prasch 2018-06-27 23:07:09 -07:00
parent ba631e6806
commit df6edd47c5
1 changed files with 2 additions and 0 deletions

View File

@ -3,9 +3,11 @@
# The following line is needed by the CircleCI Local Build Tool (due to Docker interactivity)
exec < /dev/tty
echo "Validating CircleCI YML Config..."
# If validation fails, tell Git to stop and provide error message. Otherwise, continue.
if ! eMSG=$(circleci config validate -c .circleci/config.yml); then
echo "CircleCI Configuration Failed Validation."
echo $eMSG
exit 1
fi
echo "CircleCI config is valid."