Commit 4479ece7 authored by J. Alexander Treuman's avatar J. Alexander Treuman

Making "list any" fail with an error instead of OK with no results.

git-svn-id: https://svn.musicpd.org/mpd/trunk@5139 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent ba4b4d8a
......@@ -648,6 +648,12 @@ static int handleList(int fd, int *permission, int argc, char *argv[])
return -1;
}
if (tagType == LOCATE_TAG_ANY_TYPE) {
commandError(fd, ACK_ERROR_ARG,
"\"any\" is not a valid return tag type");
return -1;
}
/* for compatibility with < 0.12.0 */
if (argc == 3) {
if (tagType != TAG_ITEM_ALBUM) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment