From 37b49d27a031bbfb65255f8d2460418e76ea47e3 Mon Sep 17 00:00:00 2001 From: Saxon Nelson-Milton Date: Tue, 8 Mar 2022 14:23:53 +1030 Subject: [PATCH] protocol/rtmp/rtmp.go: correcting missing error wrapping --- protocol/rtmp/rtmp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/rtmp/rtmp.go b/protocol/rtmp/rtmp.go index e51f6eea..411ea7c7 100644 --- a/protocol/rtmp/rtmp.go +++ b/protocol/rtmp/rtmp.go @@ -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: