mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-02-04 13:58:41 +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
|
# Tests
|
||||||
if [[ "$FILE" =~ ^.+(php)$ ]] && [[ $(isPhanTestSuccessful "$FILE") = 0 ]]; then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$FILE" =~ ^.+(php)$ ]] && [[ $(isPhpStanTestSuccessful "$FILE") = 0 ]]; then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user