Signed-off-by: hanzhixiao <709674996@qq.com>
pull/828/head
hanzhixiao 2 years ago
parent 757ca17bbe
commit 6208d93bb5

@ -78,7 +78,7 @@ func main() {
// Check Minio // Check Minio
if err := checkMinio(); err != nil { if err := checkMinio(); err != nil {
if index := strings.Index(err.Error(), utils.IntToString(configErrCode)); index != -1 { 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 { } 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()))
} }
@ -275,5 +275,5 @@ func successPrint(s string) {
} }
func warningPrint(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)
} }

Loading…
Cancel
Save