Add warn and error functions to color warning and error output.

Review URL: http://codereview.chromium.org/601050
This commit is contained in:
robotboy 2010-02-11 15:30:55 -08:00
parent b2f24a8d82
commit 2ea03ac0fc

View File

@ -224,3 +224,14 @@ is_whitelisted() {
|| /bin/true)
test $count -ne 0
}
V_RED="\e[31m"
V_YELLOW="\e[33m"
function warn {
echo -e "${V_YELLOW}Warning..: $1${V_VIDOFF}"
}
function error {
echo -e "${V_RED}Error....: $1${V_VIDOFF}"
}