From: Josh Bleecher Snyder Date: Sun, 4 Sep 2016 21:52:59 +0000 (-0700) Subject: net/http/httputil: t.Error -> t.Errorf X-Git-Tag: go1.8beta1~1496 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1a04b4abe78a152da5ccd801bf13a1df7ddfa8aa;p=gostls13.git net/http/httputil: t.Error -> t.Errorf Found by vet. Change-Id: I09b79d68c7a5fc97e0edda4700a82bfbb00a4f45 Reviewed-on: https://go-review.googlesource.com/28486 Run-TryBot: Josh Bleecher Snyder TryBot-Result: Gobot Gobot Reviewed-by: Michael Hudson-Doyle --- diff --git a/src/net/http/httputil/reverseproxy_test.go b/src/net/http/httputil/reverseproxy_test.go index 8e181dbb04..8ab57b4cbb 100644 --- a/src/net/http/httputil/reverseproxy_test.go +++ b/src/net/http/httputil/reverseproxy_test.go @@ -342,7 +342,7 @@ func TestReverseProxyCancelation(t *testing.T) { }() res, err := http.DefaultClient.Do(getReq) if res != nil { - t.Error("got response %v; want nil", res.Status) + t.Errorf("got response %v; want nil", res.Status) } if err == nil { // This should be an error like: