From c39284f457383dabd52f468a10072ca6d2211cbb Mon Sep 17 00:00:00 2001 From: Kevin Krakauer Date: Thu, 11 Feb 2021 15:59:20 -0800 Subject: Let sentry understand tcpip.ErrMalformedHeader Added a LINT IfChange/ThenChange check to catch this in the future. PiperOrigin-RevId: 357077564 --- pkg/tcpip/errors.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/tcpip/errors.go') diff --git a/pkg/tcpip/errors.go b/pkg/tcpip/errors.go index af46da1d2..3b7cc52f3 100644 --- a/pkg/tcpip/errors.go +++ b/pkg/tcpip/errors.go @@ -32,6 +32,8 @@ type Error interface { fmt.Stringer } +// LINT.IfChange + // ErrAborted indicates the operation was aborted. // // +stateify savable @@ -536,3 +538,5 @@ func (*ErrWouldBlock) IgnoreStats() bool { return true } func (*ErrWouldBlock) String() string { return "operation would block" } + +// LINT.ThenChange(../syserr/netstack.go) -- cgit v1.2.3