You need to sign in or sign up before continuing.
Commit ecc3c39e authored by Qball Cow's avatar Qball Cow Committed by Max Kellermann

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.
parent 22645abc
...@@ -237,7 +237,7 @@ static int print_playlist_result(struct client *client, ...@@ -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;
......
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