mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-28 14:35:27 +08:00
Refine error of WaitForComponentStates (#13308)
Signed-off-by: dragondriver <jiquan.long@zilliz.com>
This commit is contained in:
parent
9051d64f47
commit
6ba7e81a81
@ -88,8 +88,10 @@ func WaitForComponentStates(ctx context.Context, service types.Component, servic
|
||||
}
|
||||
}
|
||||
if !meet {
|
||||
msg := fmt.Sprintf("WaitForComponentStates, not meet, %s current state:%d", serviceName, resp.State.StateCode)
|
||||
return errors.New(msg)
|
||||
return fmt.Errorf(
|
||||
"WaitForComponentStates, not meet, %s current state: %s",
|
||||
serviceName,
|
||||
resp.State.StateCode.String())
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user