diff options
author | Eyal Soha <eyalsoha@google.com> | 2020-04-11 06:45:15 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-04-11 06:46:27 -0700 |
commit | 20203494680f869669ab5318b36e9470ad4b3e7b (patch) | |
tree | 0fd977f22a31325f7421d9cc046b82b90d6213d6 /test/packetimpact/testbench/connections.go | |
parent | daf3322498b698518a3c8545ad05f790deb3848c (diff) |
Improve error messages when parsing headers.
Tested:
Looked at output of failing tests.
PiperOrigin-RevId: 306031407
Diffstat (limited to 'test/packetimpact/testbench/connections.go')
-rw-r--r-- | test/packetimpact/testbench/connections.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/packetimpact/testbench/connections.go b/test/packetimpact/testbench/connections.go index ed8689fd3..b11a534ac 100644 --- a/test/packetimpact/testbench/connections.go +++ b/test/packetimpact/testbench/connections.go @@ -213,7 +213,7 @@ func (conn *TCPIPv4) RecvFrame(timeout time.Duration) Layers { } layers, err := ParseEther(b) if err != nil { - conn.t.Logf("can't parse frame: %s", err) + conn.t.Logf("debug: can't parse frame, ignoring: %s", err) continue // Ignore packets that can't be parsed. } if !conn.incoming.match(layers) { |