docs: some wrong err msg description

pull/1706/head
白玉堂 3 years ago committed by GitHub
parent 94d674fd4c
commit 72f9cc3518
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      contrib/registry/nacos/registry.go

@ -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)

Loading…
Cancel
Save