mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
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
This commit is contained in:
committed by
gVisor bot
parent
33b41d8fe9
commit
04dc27899b
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user