mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-01-11 11:48:40 +00:00
Improve error file output
This commit is contained in:
parent
b409bdd2c0
commit
fc04fb8cd1
|
|
@ -27,12 +27,12 @@ for FILE in $(git diff --cached --name-only); do
|
|||
|
||||
# Tests
|
||||
if [[ "$FILE" =~ ^.+(php)$ ]] && [[ $(isPhanTestSuccessful "$FILE") = 0 ]]; then
|
||||
echo -e "\e[1;31m\tPhan error.\e[0m" >&2
|
||||
echo -e "\e[1;31m\tPhan error in $FILE.\e[0m" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ "$FILE" =~ ^.+(php)$ ]] && [[ $(isPhpStanTestSuccessful "$FILE") = 0 ]]; then
|
||||
echo -e "\e[1;31m\tPhp stan error.\e[0m" >&2
|
||||
echo -e "\e[1;31m\tPhp stan error in $FILE.\e[0m" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user