Skip to content
Snippets Groups Projects
Unverified Commit 78e7ed05 authored by vito.he's avatar vito.he Committed by GitHub
Browse files

Merge pull request #266 from imxyb/bugfix/return-error

should return error when `NewURL` failed.
parents d77b772a e4561b6a
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