Changed packet address error meesage

This commit is contained in:
Nicholas Novak
2021-11-11 16:05:58 -07:00
parent 532cd48f33
commit b367864c2b

View File

@ -62,7 +62,7 @@ func (a Ary) ReadFrom(r io.Reader) (n int64, err error) {
array = array.Elem() array = array.Elem()
} }
if !array.CanAddr() { 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 { if array.Cap() < length {
array.Set(reflect.MakeSlice(array.Type(), length, length)) array.Set(reflect.MakeSlice(array.Type(), length, length))