From ecc3c39e2f557f521135af8a52c8d6216a4a02bd Mon Sep 17 00:00:00 2001 From: Qball Cow Date: Thu, 9 Oct 2008 11:51:22 +0200 Subject: 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. --- src/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/command.c b/src/command.c index d985fd61b..3490c666f 100644 --- a/src/command.c +++ b/src/command.c @@ -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; -- cgit v1.2.3