aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQball Cow <qball@qballcow.nl>2008-10-09 11:51:22 +0200
committerMax Kellermann <max@duempel.org>2008-10-09 11:51:22 +0200
commitecc3c39e2f557f521135af8a52c8d6216a4a02bd (patch)
tree850dd66ad7badedc19ab34a114db743c3795cf1d
parent22645abc108ee672a78ace4fdeaeb80e2a0d82e6 (diff)
downloadmpd-ecc3c39e2f557f521135af8a52c8d6216a4a02bd.tar.gz
mpd-ecc3c39e2f557f521135af8a52c8d6216a4a02bd.tar.xz
mpd-ecc3c39e2f557f521135af8a52c8d6216a4a02bd.zip
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.
-rw-r--r--src/command.c2
1 files changed, 1 insertions, 1 deletions
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;