From fc04fb8cd182550a4fc1a4dfd79af537b5e320b4 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 9 Dec 2018 16:30:58 +0100 Subject: [PATCH] Improve error file output --- Hooks/delegator.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Hooks/delegator.sh b/Hooks/delegator.sh index 956f76c..de3ff89 100644 --- a/Hooks/delegator.sh +++ b/Hooks/delegator.sh @@ -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