From 2210ddee97bd16424e218a3894fcaca52a4ee080 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 7 Sep 2008 13:49:01 +0200 Subject: directory: printDirectoryInfo() does not call commandError() Move another ocurrence of error handling over to command.c. --- src/directory.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/directory.c') diff --git a/src/directory.c b/src/directory.c index 64d9492a8..80385929c 100644 --- a/src/directory.c +++ b/src/directory.c @@ -848,10 +848,8 @@ int printDirectoryInfo(int fd, const char *name) { Directory *directory; - if ((directory = getDirectory(name)) == NULL) { - commandError(fd, ACK_ERROR_NO_EXIST, "directory not found"); + if ((directory = getDirectory(name)) == NULL) return -1; - } printDirectoryList(fd, directory->subDirectories); printSongInfoFromList(fd, directory->songs); -- cgit v1.2.3