[Yunq] Return status from client calls.
This commit is contained in:
parent
700f3f94cb
commit
c209925a3c
25 changed files with 102 additions and 112 deletions
|
|
@ -64,7 +64,11 @@ glcr::ErrorOr<glcr::Vector<glcr::String>> ListDirectory(glcr::StringView path) {
|
|||
GetDirectoryRequest req;
|
||||
req.set_path(path);
|
||||
Directory dir;
|
||||
RET_ERR(gVfsClient->GetDirectory(req, dir));
|
||||
auto status = gVfsClient->GetDirectory(req, dir);
|
||||
if (!status.ok()) {
|
||||
dbgln("Error in getting directory: {}", status.message());
|
||||
return status.code();
|
||||
}
|
||||
|
||||
auto file_views = glcr::StrSplit(dir.filenames(), ',');
|
||||
glcr::Vector<glcr::String> files;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue