diff --git a/utils.go b/utils.go index d401469ebbc9d05522d001d186c147472853933a..729dd30909ad63cdcc153bf1d1c98c40d0f557fc 100644 --- a/utils.go +++ b/utils.go @@ -471,7 +471,7 @@ func ReadByteArray(br io.Reader, maxlen uint64) ([]byte, error) { } if extra > maxlen { - return nil, fmt.Errorf("string in cbor input too long") + return nil, fmt.Errorf("string in cbor input too long, maxlen: %d", maxlen) } buf := make([]byte, extra)