update error message

This commit is contained in:
aler9
2021-10-06 15:46:02 +02:00
parent c084f1b0f3
commit 04ff57287d

View File

@@ -39,7 +39,7 @@ func setupGetTrackIDPathQuery(
// URL doesn't contain trackID - it's track zero
if i < 0 {
if !strings.HasSuffix(pathAndQuery, "/") {
return 0, "", "", fmt.Errorf("path must end with a slash (%v)", pathAndQuery)
return 0, "", "", fmt.Errorf("path of a SETUP request must end with a slash (%v)", pathAndQuery)
}
pathAndQuery = pathAndQuery[:len(pathAndQuery)-1]