1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-03-17 21:07:54 +02:00

docs: some wrong err msg description

This commit is contained in:
白玉堂 2021-12-22 09:08:29 +08:00 committed by GitHub
parent 94d674fd4c
commit 72f9cc3518
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,7 +81,7 @@ func New(cli naming_client.INamingClient, opts ...Option) (r *Registry) {
// Register the registration.
func (r *Registry) Register(_ context.Context, si *registry.ServiceInstance) error {
if si.Name == "" {
return fmt.Errorf("kratos/nacos: serviceInstance.name cannot is empty")
return fmt.Errorf("kratos/nacos: serviceInstance.name can not be empty")
}
for _, endpoint := range si.Endpoints {
u, err := url.Parse(endpoint)