command/queue: better error message for open-ended range with "move"

The "move" command doesn't allow open-ended ranges because they don't
make a lot of sense; moving an open-ended range is only possible if
the destination index is before the range, and in that case, the
client should be well aware how many songs there are.

Closes https://github.com/MusicPlayerDaemon/MPD/pull/1057
This commit is contained in:
Max Kellermann
2021-02-15 20:51:12 +01:00
parent a6c10e9a1c
commit 6b1d264b35
2 changed files with 6 additions and 0 deletions

1
NEWS
View File

@@ -1,6 +1,7 @@
ver 0.22.5 (not yet released)
* protocol
- error for malformed ranges instead of ignoring silently
- better error message for open-ended range with "move"
* database
- simple: fix missing CUE sheet metadata in "addid" command
* tags