diff options
Diffstat (limited to 'formats/pktline/decoder.go')
-rw-r--r-- | formats/pktline/decoder.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/formats/pktline/decoder.go b/formats/pktline/decoder.go index c30be6b..34e6f51 100644 --- a/formats/pktline/decoder.go +++ b/formats/pktline/decoder.go @@ -7,9 +7,12 @@ import ( ) var ( - ErrUnderflow = errors.New("unexpected string length (underflow)") + // ErrUnderflow is triggered when a line is shorter than the described length + ErrUnderflow = errors.New("unexpected string length (underflow)") + // ErrInvalidHeader invalid pktline header ErrInvalidHeader = errors.New("invalid header") - ErrInvalidLen = errors.New("invalid length") + // ErrInvalidLen ivanlid line length found, < 0 + ErrInvalidLen = errors.New("invalid length") ) // Decoder implements a pkt-line format decoder |