mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 23:26:54 +08:00
add more details to errors
This commit is contained in:
@@ -53,7 +53,8 @@ func (h *Header) read(rb *bufio.Reader) error {
|
||||
}
|
||||
|
||||
if len(*h) >= headerMaxEntryCount {
|
||||
return fmt.Errorf("headers count exceeds %d", headerMaxEntryCount)
|
||||
return fmt.Errorf("headers count exceeds %d (it's %d)",
|
||||
headerMaxEntryCount, len(*h))
|
||||
}
|
||||
|
||||
key := string([]byte{byt})
|
||||
|
Reference in New Issue
Block a user