From e9851c6dea492fa2e2f1ad7fe7d63f84faafa912 Mon Sep 17 00:00:00 2001 From: Paul Morie Date: Thu, 27 Aug 2015 17:30:31 -0400 Subject: [PATCH] Quote malformed host values in unversioned client helper --- pkg/client/unversioned/helper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/client/unversioned/helper.go b/pkg/client/unversioned/helper.go index d23655d3434..ac09a0924c9 100644 --- a/pkg/client/unversioned/helper.go +++ b/pkg/client/unversioned/helper.go @@ -479,7 +479,7 @@ func DefaultServerURL(host, prefix, version string, defaultTLS bool) (*url.URL, return nil, err } if hostURL.Path != "" && hostURL.Path != "/" { - return nil, fmt.Errorf("host must be a URL or a host:port pair: %s", base) + return nil, fmt.Errorf("host must be a URL or a host:port pair: %q", base) } }