From 04dc27899bbdeb9bbce2b2647856d160e8ccd78d Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Fri, 15 Oct 2021 13:49:48 -0700 Subject: Fix incorrect printf verb tcpip.Error does not implement error and thus cannot be used with %w. This was flagged by nogo. PiperOrigin-RevId: 403458480 --- test/benchmarks/tcp/tcp_proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/benchmarks/tcp/tcp_proxy.go b/test/benchmarks/tcp/tcp_proxy.go index bc0d8fd38..8273b12a7 100644 --- a/test/benchmarks/tcp/tcp_proxy.go +++ b/test/benchmarks/tcp/tcp_proxy.go @@ -213,7 +213,7 @@ func newNetstackImpl(mode string) (impl, error) { AddressWithPrefix: parsedAddr.WithPrefix(), } if err := s.AddProtocolAddress(nicID, protocolAddr, stack.AddressProperties{}); err != nil { - return nil, fmt.Errorf("error adding IP address %+v to %q: %w", protocolAddr, *iface, err) + return nil, fmt.Errorf("error adding IP address %+v to %q: %s", protocolAddr, *iface, err) } subnet, err := tcpip.NewSubnet(parsedDest, parsedMask) -- cgit v1.2.3