You can't use git log to color error messages when there are no commits, but you can manually apply color using ANSI escape codes. For example:
git log
echo -e "\033[31mError message\033[0m"