未验证 提交 6ba7e81a 编写于 作者: D dragondriver 提交者: GitHub

Refine error of WaitForComponentStates (#13308)

Signed-off-by: Ndragondriver <jiquan.long@zilliz.com>
上级 9051d64f
......@@ -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
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册