Update RTSP error output

This commit is contained in:
Alexey Khit
2022-08-22 09:09:18 +03:00
parent f36851f83a
commit 401bf85a10
+1 -2
View File
@@ -2,7 +2,6 @@ package tcp
import (
"bufio"
"errors"
"fmt"
"io"
"net/textproto"
@@ -50,7 +49,7 @@ func ReadResponse(r *bufio.Reader) (*Response, error) {
ss := strings.SplitN(line, " ", 3)
if len(ss) != 3 {
return nil, errors.New("malformed response")
return nil, fmt.Errorf("malformed response: %s", line)
}
res := &Response{