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:
parent
22645abc10
commit
ecc3c39e2f
@ -237,7 +237,7 @@ static int print_playlist_result(struct client *client,
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
case PLAYLIST_RESULT_LIST_EXISTS:
|
case PLAYLIST_RESULT_LIST_EXISTS:
|
||||||
command_error(client, ACK_ERROR_NO_EXIST,
|
command_error(client, ACK_ERROR_EXIST,
|
||||||
"Playlist already exists");
|
"Playlist already exists");
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user