diff --git a/config_center/parser/configuration_parser.go b/config_center/parser/configuration_parser.go index 1ce6594017ddc3cf76ba01c985b01a97e5ec91f3..85033ce97f3e9038d57b6156e6dc68139363e8c3 100644 --- a/config_center/parser/configuration_parser.go +++ b/config_center/parser/configuration_parser.go @@ -134,14 +134,14 @@ func serviceItemToUrls(item ConfigItem, config ConfiguratorConfig) ([]*common.UR newUrlStr = newUrlStr + v url, err := common.NewURL(context.Background(), newUrlStr) if err != nil { - perrors.WithStack(err) + return nil, perrors.WithStack(err) } urls = append(urls, &url) } } else { url, err := common.NewURL(context.Background(), urlStr) if err != nil { - perrors.WithStack(err) + return nil, perrors.WithStack(err) } urls = append(urls, &url) }