protocol/rtcp/client.go: using fmt.Errorf rather than errors.New(fmt.Sprintf(...)) in parse()

This commit is contained in:
Saxon 2019-05-08 13:53:36 +09:30
parent ea309b295e
commit f5d38b1bfc
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ func (c *Client) parse(buf []byte) {
c.markReceivedTime()
t, err := ParseTimestamp(buf)
if err != nil {
c.err <- errors.New(fmt.Sprintf("could not get timestamp from sender report, failed with error: %v", err))
c.err <- fmt.Errorf("could not get timestamp from sender report, failed with error: %v\n", err)
}
c.setSenderTs(t)
}