From 6208d93bb57584017ca1d608db3e6156f95c1dfb Mon Sep 17 00:00:00 2001 From: hanzhixiao <709674996@qq.com> Date: Wed, 9 Aug 2023 11:34:36 +0800 Subject: [PATCH] 815 Signed-off-by: hanzhixiao <709674996@qq.com> --- tools/component/main.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/component/main.go b/tools/component/main.go index 0bf4d5f23..adea21a51 100644 --- a/tools/component/main.go +++ b/tools/component/main.go @@ -61,7 +61,7 @@ func main() { fmt.Printf("Checking components Round %v......\n", i+1) // Check MySQL if err := checkMysql(); err != nil { - errorPrint(fmt.Sprintf("Starting Mysql failed: %v.Please make sure your mysql service has started", err.Error())) + errorPrint(fmt.Sprintf("Starting Mysql failed: %v. Please make sure your mysql service has started", err.Error())) continue } else { successPrint(fmt.Sprint("Mysql starts successfully")) @@ -69,7 +69,7 @@ func main() { // Check MongoDB if err := checkMongo(); err != nil { - errorPrint(fmt.Sprintf("Starting Mongo failed: %v.Please make sure your monngo service has started", err.Error())) + errorPrint(fmt.Sprintf("Starting Mongo failed: %v. Please make sure your monngo service has started", err.Error())) continue } else { successPrint(fmt.Sprint("Mongo starts successfully")) @@ -78,9 +78,9 @@ func main() { // Check Minio if err := checkMinio(); err != nil { if index := strings.Index(err.Error(), utils.IntToString(configErrCode)); index != -1 { - warningPrint(fmt.Sprintf("%v Please modify your config file", err.Error())) + warningPrint(fmt.Sprintf("%v. Please modify your config file", err.Error())) } else { - errorPrint(fmt.Sprintf("Starting Minio failed: %v.Please make sure your Minio service has started", err.Error())) + errorPrint(fmt.Sprintf("Starting Minio failed: %v. Please make sure your Minio service has started", err.Error())) } continue } else { @@ -275,5 +275,5 @@ func successPrint(s string) { } func warningPrint(s string) { - fmt.Printf("\x1b[%dm%v\x1b[0m\n", 33, s) + fmt.Printf("\x1b[%dmWarning: %v\x1b[0m\n", 33, s) }