From b367864c2b0a41be487d3ebe0feede1dd1e5564b Mon Sep 17 00:00:00 2001 From: Nicholas Novak Date: Thu, 11 Nov 2021 16:05:58 -0700 Subject: [PATCH 1/2] Changed packet address error meesage --- net/packet/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/packet/util.go b/net/packet/util.go index d69ccb3..7fa0da8 100644 --- a/net/packet/util.go +++ b/net/packet/util.go @@ -62,7 +62,7 @@ func (a Ary) ReadFrom(r io.Reader) (n int64, err error) { array = array.Elem() } if !array.CanAddr() { - panic(errors.New("the Ary is not addressable")) + panic(errors.New("the contents of the array are not addressable")) } if array.Cap() < length { array.Set(reflect.MakeSlice(array.Type(), length, length)) From d9853b25aaaad58ac7d41d7ccc94a9c4ee8b4559 Mon Sep 17 00:00:00 2001 From: Nicholas Novak Date: Thu, 11 Nov 2021 16:12:49 -0700 Subject: [PATCH 2/2] Changed the packet Ary error message --- net/packet/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/packet/util.go b/net/packet/util.go index 7fa0da8..aa69e56 100644 --- a/net/packet/util.go +++ b/net/packet/util.go @@ -62,7 +62,7 @@ func (a Ary) ReadFrom(r io.Reader) (n int64, err error) { array = array.Elem() } if !array.CanAddr() { - panic(errors.New("the contents of the array are not addressable")) + panic(errors.New("the contents of the Ary are not addressable")) } if array.Cap() < length { array.Set(reflect.MakeSlice(array.Type(), length, length))