Skip to content

Commit

Permalink
change error message
Browse files Browse the repository at this point in the history
Signed-off-by: pashakostohrys <pavel@codefresh.io>
  • Loading branch information
pasha-codefresh committed Oct 15, 2024
1 parent d3af08b commit 3b48ae2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/apis/application/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -3144,7 +3144,7 @@ func ParseProxyUrl(proxyUrl string) (*url.URL, error) {
switch u.Scheme {
case "http", "https", "socks5":
default:
return nil, fmt.Errorf("unsupported scheme %q, must be http, https, or socks5", u.Scheme)
return nil, fmt.Errorf("Failed to parse proxy url, unsupported scheme %q, must be http, https, or socks5", u.Scheme)
}
return u, nil
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/application/v1alpha1/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4277,7 +4277,7 @@ func TestCluster_ParseProxyUrl(t *testing.T) {
},
{
url: "test://!abc",
expectedErrMsg: "unsupported scheme \"test\", must be http, https, or socks5",
expectedErrMsg: "Failed to parse proxy url, unsupported scheme \"test\", must be http, https, or socks5",
},
{
url: "http://192.168.99.100:8443",
Expand Down

0 comments on commit 3b48ae2

Please sign in to comment.