[ox/fs] Add error messgae to PassthroughFS::statPath

This commit is contained in:
Gary Talent 2023-02-12 21:45:18 -06:00
parent 6d4c57d37d
commit ba7ee92ad2

View File

@ -102,7 +102,7 @@ Result<FileStat> PassThroughFS::statPath(CRStringView path) const noexcept {
const uint64_t size = type == FileType::Directory ? 0 : std::filesystem::file_size(p, ec);
oxTracef("ox::fs::PassThroughFS::statInode", "{} {}", ec.message(), path);
oxTracef("ox::fs::PassThroughFS::statInode::size", "{} {}", path, size);
oxReturnError(OxError(ec.value()));
oxReturnError(OxError(ec.value(), "PassThroughFS: stat failed"));
return FileStat{0, 0, size, type};
}