fs/DirectoryReader: use C++ exceptions instead of class Error

This commit is contained in:
Max Kellermann
2015-12-29 12:41:45 +01:00
parent 826a654c95
commit f3503e0026
12 changed files with 79 additions and 76 deletions

View File

@@ -198,11 +198,6 @@ CommandResult
handle_listplaylists(gcc_unused Client &client, gcc_unused Request args,
Response &r)
{
Error error;
const auto list = ListPlaylistFiles(error);
if (list.empty() && error.IsDefined())
return print_error(r, error);
print_spl_list(r, list);
print_spl_list(r, ListPlaylistFiles());
return CommandResult::OK;
}