aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.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/command.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 '')
-rw-r--r--src/command.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c
index 238761f74..14b1aca09 100644
--- a/src/command.c
+++ b/src/command.c
@@ -575,8 +575,10 @@ static int handleLsInfo(int fd, mpd_unused int *permission,
if (argc == 2)
path = argv[1];
- if (printDirectoryInfo(fd, path) < 0)
+ if (printDirectoryInfo(fd, path) < 0) {
+ commandError(fd, ACK_ERROR_NO_EXIST, "directory not found");
return -1;
+ }
if (isRootDirectory(path))
return lsPlaylists(fd, path);