From ed8b69c118e5a9dd69de6648b46bd94a96df864f Mon Sep 17 00:00:00 2001 From: chme Date: Sat, 2 May 2015 07:31:54 +0200 Subject: [PATCH] [mpd] return proper error type if playlist does not exist --- src/mpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mpd.c b/src/mpd.c index d2febfd0..30cafdb2 100644 --- a/src/mpd.c +++ b/src/mpd.c @@ -1760,7 +1760,7 @@ mpd_command_listplaylistinfo(struct evbuffer *evbuf, int argc, char **argv, char ret = asprintf(errmsg, "Playlist not found for path '%s'", argv[1]); if (ret < 0) DPRINTF(E_LOG, L_MPD, "Out of memory\n"); - return ACK_ERROR_ARG; + return ACK_ERROR_NO_EXIST; } memset(&qp, 0, sizeof(struct query_params));