aboutsummaryrefslogtreecommitdiffstats
path: root/src/directory.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-07 13:49:01 +0200
committerMax Kellermann <max@duempel.org>2008-09-07 13:49:01 +0200
commit17b6491bcf37503bbc5d6cf6cee00bd1c6ec834a (patch)
tree2d9fa59ddf97f5c37842e424248117916973e9e0 /src/directory.c
parentf320c9fa1dc2268fbd97ba9cb00140276c0a2e23 (diff)
downloadmpd-17b6491bcf37503bbc5d6cf6cee00bd1c6ec834a.tar.gz
mpd-17b6491bcf37503bbc5d6cf6cee00bd1c6ec834a.tar.xz
mpd-17b6491bcf37503bbc5d6cf6cee00bd1c6ec834a.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 d72aca1de..a9cb892a8 100644
--- a/src/directory.c
+++ b/src/directory.c
@@ -850,10 +850,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);