From 5896dfd29b57649fac57e2a65dc1f905255057bc Mon Sep 17 00:00:00 2001 From: DarthSim Date: Fri, 7 Sep 2018 23:49:46 +0600 Subject: [PATCH] Add coloring for warnings --- errors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/errors.go b/errors.go index 1bfe4013..62c605ba 100644 --- a/errors.go +++ b/errors.go @@ -46,5 +46,5 @@ func stacktrace(skip int) string { } func warning(f string, args ...interface{}) { - log.Printf("[WARNING] %s", fmt.Sprintf(f, args...)) + log.Printf("\033[1;33m[WARNING]\033[0m %s", fmt.Sprintf(f, args...)) }