mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-24 18:36:19 +08:00
Error not handled
This commit is contained in:
parent
210936411d
commit
37947623e3
@ -102,14 +102,17 @@ func main() {
|
|||||||
if !check.flag {
|
if !check.flag {
|
||||||
err = check.function(check.config)
|
err = check.function(check.config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if errors.Is(err, errMinioNotEnabled) {
|
if check.name == "Minio" {
|
||||||
fmt.Println(err.Error())
|
if errors.Is(err, errMinioNotEnabled) {
|
||||||
checks[index].flag = true
|
fmt.Println(err.Error())
|
||||||
}
|
checks[index].flag = true
|
||||||
if errors.Is(err, errSignEndPoint) {
|
}
|
||||||
fmt.Fprintf(os.Stderr, err.Error())
|
if errors.Is(err, errSignEndPoint) {
|
||||||
checks[index].flag = true
|
fmt.Fprintf(os.Stderr, err.Error())
|
||||||
|
checks[index].flag = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
component.ErrorPrint(fmt.Sprintf("Starting %s failed:%v.", check.name, errs.Unwrap(err).Error()))
|
component.ErrorPrint(fmt.Sprintf("Starting %s failed:%v.", check.name, errs.Unwrap(err).Error()))
|
||||||
if strings.Contains(errs.Unwrap(err).Error(), "connection refused") ||
|
if strings.Contains(errs.Unwrap(err).Error(), "connection refused") ||
|
||||||
strings.Contains(errs.Unwrap(err).Error(), "timeout") ||
|
strings.Contains(errs.Unwrap(err).Error(), "timeout") ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user