mirror of https://bitbucket.org/ausocean/av.git
Don't wrap error unnecessarily.
This commit is contained in:
parent
b1e5890554
commit
4b57407e36
|
@ -237,7 +237,7 @@ func IndexPid(d []byte, pids ...uint16) (idx int, m map[string]string, err error
|
|||
continue
|
||||
}
|
||||
if i != prev+PacketSize {
|
||||
err = errors.Wrap(err, "PIDs not consecutive")
|
||||
err = errors.New("PIDs not consecutive")
|
||||
return
|
||||
}
|
||||
prev = i
|
||||
|
|
Loading…
Reference in New Issue