Skip to content
Snippets Groups Projects
Commit d457c813 authored by imxyb's avatar imxyb
Browse files

should return error when `NewURL` failed.


Signed-off-by: default avatarimxyb <xyb4638@gmail.com>
parent 22526373
No related branches found
No related tags found
No related merge requests found
......@@ -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)
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment