Skip to content

Commit b2f570f

Browse files
committed
[feat](verbose): Correct details in ending message
1 parent 9dcbf8c commit b2f570f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/shellunity

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,12 @@ TEST_UNITY(){
7777
NUMBER_OF_FAILURES_UNITY=$((NUMBER_OF_FAILURES_UNITY+1))
7878
if [ "$VERBOSE" == "1" ]
7979
then
80-
echo -e "${RED}FAIL${END}: $4"
80+
MSG="$4"
81+
if [ -n "$4" ]
82+
then
83+
MSG=": $MSG"
84+
fi
85+
echo -e "${RED}FAIL${END}$MSG"
8186
else
8287
echo -e "${RED}FAIL${END}"
8388
fi

0 commit comments

Comments
 (0)