Fix error code for "Playlist already exists"

With commit 6dcd7fea (if I am not mistaken) the error returned when
you try to save to an existing playlist is wrong.  Instead of
MPD_ACK_ERROR_EXIST, MPD_ACK_ERROR_NO_EXIST is returned.  This is
obviously wrong and breaks gmpc.
This commit is contained in:
Qball Cow 2008-10-09 11:51:22 +02:00 committed by Max Kellermann
parent 22645abc10
commit ecc3c39e2f

View File

@ -237,7 +237,7 @@ static int print_playlist_result(struct client *client,
return -1;
case PLAYLIST_RESULT_LIST_EXISTS:
command_error(client, ACK_ERROR_NO_EXIST,
command_error(client, ACK_ERROR_EXIST,
"Playlist already exists");
return -1;