diff options
author | Max Kellermann <max@duempel.org> | 2008-09-07 13:49:01 +0200 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-09-09 01:11:41 -0700 |
commit | 2210ddee97bd16424e218a3894fcaca52a4ee080 (patch) | |
tree | 9e3aea03f8e353dab9c7bce75398e8e2ec28d420 /src/command.c | |
parent | 7d7b69e576500522a011627d7937e255aa7c16c7 (diff) | |
download | mpd-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 '')
-rw-r--r-- | src/command.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c index 7a2981e68..e24c93d59 100644 --- a/src/command.c +++ b/src/command.c @@ -573,8 +573,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); |