[mpd] return proper error type if playlist does not exist

This commit is contained in:
chme 2015-05-02 07:31:54 +02:00
parent 1300b2f018
commit ed8b69c118

View File

@ -1760,7 +1760,7 @@ mpd_command_listplaylistinfo(struct evbuffer *evbuf, int argc, char **argv, char
ret = asprintf(errmsg, "Playlist not found for path '%s'", argv[1]);
if (ret < 0)
DPRINTF(E_LOG, L_MPD, "Out of memory\n");
return ACK_ERROR_ARG;
return ACK_ERROR_NO_EXIST;
}
memset(&qp, 0, sizeof(struct query_params));