aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQball Cow <qball@qballcow.nl>2008-10-09 11:51:22 +0200
committerEric Wong <normalperson@yhbt.net>2008-10-09 03:50:30 -0700
commitdec65409ba20c653efafbd57d6f74b6d376a9f92 (patch)
treeeaf0865320fb8f8a7cd07fd5a5e3fcace9bc5757 /src
parentc95334b2095e57e900e2c09e858b86f78a5bdb06 (diff)
downloadmpd-dec65409ba20c653efafbd57d6f74b6d376a9f92.tar.gz
mpd-dec65409ba20c653efafbd57d6f74b6d376a9f92.tar.xz
mpd-dec65409ba20c653efafbd57d6f74b6d376a9f92.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.
Diffstat (limited to 'src')
-rw-r--r--src/command.c3
1 files changed, 1 insertions, 2 deletions
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: