Skip to content

Commit

Permalink
Merge pull request openshift#280 from danehans/proxy_reconciler_fix
Browse files Browse the repository at this point in the history
Fixes proxy validation error formatting
  • Loading branch information
openshift-merge-robot committed Aug 13, 2019
2 parents 210e2de + dd6b029 commit 146bc27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/proxyconfig/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func (r *ReconcileProxyConfig) ValidateProxyConfig(proxyConfig *configv1.ProxySp
return fmt.Errorf("invalid httpProxy URI: %v", err)
}
if scheme != proxyHTTPScheme {
return fmt.Errorf("httpProxy requires an %q URI scheme", proxyHTTPScheme)
return fmt.Errorf("httpProxy requires a '%s' URI scheme", proxyHTTPScheme)
}
}

Expand All @@ -35,7 +35,7 @@ func (r *ReconcileProxyConfig) ValidateProxyConfig(proxyConfig *configv1.ProxySp
return fmt.Errorf("invalid httpsProxy URI: %v", err)
}
if scheme != proxyHTTPScheme && scheme != proxyHTTPSScheme {
return fmt.Errorf("httpsProxy requires a %q or %s URI scheme", proxyHTTPScheme, proxyHTTPSScheme)
return fmt.Errorf("httpsProxy requires a '%s' or '%s' URI scheme", proxyHTTPScheme, proxyHTTPSScheme)
}
}

Expand Down

0 comments on commit 146bc27

Please sign in to comment.