diff options
Diffstat (limited to 'pkg/p9/transport.go')
-rw-r--r-- | pkg/p9/transport.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/p9/transport.go b/pkg/p9/transport.go index c42b41fcf..b5df29961 100644 --- a/pkg/p9/transport.go +++ b/pkg/p9/transport.go @@ -206,11 +206,11 @@ func recv(s *unet.Socket, msize uint32, lookup lookupTagAndType) (Tag, message, // The message is too small. // // See above: it's probably screwed. - return NoTag, nil, ErrNoValidMessage + return NoTag, nil, ErrSocket{ErrNoValidMessage} } if size > maximumLength || size > msize { // The message is too big. - return NoTag, nil, &ErrMessageTooLarge{size, msize} + return NoTag, nil, ErrSocket{&ErrMessageTooLarge{size, msize}} } remaining := size - headerLength |