From d8ef33b71025decd52eaec5bb8417ad8e6dff873 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 7 Sep 2008 13:44:20 +0200 Subject: playlist: PlaylistInfo() does not call commandError() Continuing the effort of removing protocol specific calls from the core libraries: let the command.c code call commandError() based on PlaylistInfo's return value. --- src/playlist.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/playlist.c') diff --git a/src/playlist.c b/src/playlist.c index 107e67588..54ec74a5a 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -1342,11 +1342,8 @@ int PlaylistInfo(int fd, const char *utf8file, int detail) ListNode *node; List *list; - if (!(list = loadStoredPlaylist(utf8file))) { - commandError(fd, ACK_ERROR_NO_EXIST, "could not open playlist " - "\"%s\": %s", utf8file, strerror(errno)); + if (!(list = loadStoredPlaylist(utf8file))) return -1; - } node = list->firstNode; while (node != NULL) { -- cgit v1.2.3