Apply suggestions from code review

Co-authored-by: Lili Cosic <cosiclili@gmail.com>
Signed-off-by: Prasad Chandrasekaran <prasadc@vmware.com>
This commit is contained in:
Sergey Kacheev 2021-08-01 00:20:50 +07:00 committed by Prasad Chandrasekaran
parent 25ef9b6f46
commit 3e195ba473

View File

@ -198,7 +198,7 @@ func stringsToURLs(us []string) ([]url.URL, error) {
for _, str := range us {
u, err := url.Parse(str)
if err != nil {
return nil, fmt.Errorf("failed to parse %q", str)
return nil, fmt.Errorf("failed to parse string to URL: %q", str)
}
urls = append(urls, *u)
}