diff --git a/pkg/apis/application/v1alpha1/types.go b/pkg/apis/application/v1alpha1/types.go index 2a4529585a33a..c6f3810fb20fa 100644 --- a/pkg/apis/application/v1alpha1/types.go +++ b/pkg/apis/application/v1alpha1/types.go @@ -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 } diff --git a/pkg/apis/application/v1alpha1/types_test.go b/pkg/apis/application/v1alpha1/types_test.go index 4ee962d392ac6..d4fe0c73843fd 100644 --- a/pkg/apis/application/v1alpha1/types_test.go +++ b/pkg/apis/application/v1alpha1/types_test.go @@ -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",