protocol/rtmp/rtmp.go: correcting missing error wrapping

This commit is contained in:
Saxon Nelson-Milton 2022-03-08 14:23:53 +10:30
parent 8c5a31b052
commit 37b49d27a0
1 changed files with 1 additions and 1 deletions

View File

@ -666,7 +666,7 @@ func handleInvoke(c *Conn, body []byte) error {
c.streamID = uint32(n)
err = sendPublish(c)
if err != nil {
return err
return fmt.Errorf("could not send publish: %w",err)
}
default: