Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Unified Diff: src/scripts/common.sh

Issue 601050: Add warn and error functions to color warning and error output. (Closed)
Patch Set: Use VIDOFF instead of assuming a white background. Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/common.sh
diff --git a/src/scripts/common.sh b/src/scripts/common.sh
index e613df58ebdbb4cbff1d18452d88e4dcb94cb740..07b5cbb70646ae90d272731ea54c88d2b4c20cca 100644
--- a/src/scripts/common.sh
+++ b/src/scripts/common.sh
@@ -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}"
+}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698