mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-19 12:47:06 +08:00
815
Signed-off-by: hanzhixiao <709674996@qq.com>
This commit is contained in:
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…
x
Reference in New Issue
Block a user