better error logging

This commit is contained in:
shockrah 2020-07-27 16:16:37 -07:00
parent c490343442
commit cb8b4cece1

View File

@ -16,9 +16,11 @@ show_discrepancy() {
result=$3 result=$3
if [ $expect != $actual ];then if [ $expect != $actual ];then
echo ========== red='\033[1;91m'
echo "$result" nc='\033[0m'
echo ========== echo -e ${red}==========${nc}
echo "$result" | sed 's/^/\t/g'
echo -e ${red}==========${nc}
fi fi
} }