diff --git a/tools/component/component.go b/tools/component/component.go index 60692ff00..fbd20c55b 100644 --- a/tools/component/component.go +++ b/tools/component/component.go @@ -71,9 +71,10 @@ func colorErrPrint(msg string) { const redColor = "\033[31m" // ANSI escape code to reset color const resetColor = "\033[0m" + msg = resetColor + msg + resetColor // Format the string as per provided format and arguments // Print to stderr in red - fmt.Fprintf(os.Stderr, "%s", msg) + fmt.Fprintf(os.Stderr, "%s\n", msg) } func colorSuccessPrint(format string, a ...interface{}) {