aboutsummaryrefslogtreecommitdiffstats
path: root/src/directory.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-07 13:49:01 +0200
committerEric Wong <normalperson@yhbt.net>2008-09-09 01:11:41 -0700
commit2210ddee97bd16424e218a3894fcaca52a4ee080 (patch)
tree9e3aea03f8e353dab9c7bce75398e8e2ec28d420 /src/directory.c
parent7d7b69e576500522a011627d7937e255aa7c16c7 (diff)
downloadmpd-2210ddee97bd16424e218a3894fcaca52a4ee080.tar.gz
mpd-2210ddee97bd16424e218a3894fcaca52a4ee080.tar.xz
mpd-2210ddee97bd16424e218a3894fcaca52a4ee080.zip
directory: printDirectoryInfo() does not call commandError()
Move another ocurrence of error handling over to command.c.
Diffstat (limited to 'src/directory.c')
-rw-r--r--src/directory.c4
1 files changed, 1 insertions, 3 deletions
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);