diff options
author | Qball Cow <qball@qballcow.nl> | 2008-10-09 11:51:22 +0200 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-10-09 03:50:30 -0700 |
commit | dec65409ba20c653efafbd57d6f74b6d376a9f92 (patch) | |
tree | eaf0865320fb8f8a7cd07fd5a5e3fcace9bc5757 | |
parent | c95334b2095e57e900e2c09e858b86f78a5bdb06 (diff) | |
download | mpd-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.
-rw-r--r-- | src/command.c | 3 |
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: |