diff --git a/internal/core/webrtc_http_server.go b/internal/core/webrtc_http_server.go index d3a9d8b4..30639e82 100644 --- a/internal/core/webrtc_http_server.go +++ b/internal/core/webrtc_http_server.go @@ -254,7 +254,7 @@ func (s *webRTCHTTPServer) onWHIPPatch(ctx *gin.Context, rawSecret string) { candidates: candidates, }) if res.err != nil { - webrtcWriteError(ctx, http.StatusInternalServerError, err) + webrtcWriteError(ctx, http.StatusInternalServerError, res.err) return }