From dec65409ba20c653efafbd57d6f74b6d376a9f92 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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/command.c b/src/command.c index 6ce5cbed5..f60f4e69e 100644 --- a/src/command.c +++ b/src/command.c @@ -220,8 +220,7 @@ static int print_playlist_result(int fd, enum playlist_result result) return -1; case PLAYLIST_RESULT_LIST_EXISTS: - commandError(fd, ACK_ERROR_NO_EXIST, - "Playlist already exists"); + commandError(fd, ACK_ERROR_EXIST, "Playlist already exists"); return -1; case PLAYLIST_RESULT_BAD_NAME: -- cgit v1.2.3