From 73c9d56a798d04139c2c68047e52ceab6a858ca2 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 12 Feb 2023 21:45:18 -0600 Subject: [PATCH] [ox/fs] Add error messgae to PassthroughFS::statPath (synced from ba7ee92ad28bd7365debe8ec0c9e1f4724da36dd) --- src/ox/fs/filesystem/passthroughfs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ox/fs/filesystem/passthroughfs.cpp b/src/ox/fs/filesystem/passthroughfs.cpp index f2bcdd2f5..be04f6d6c 100644 --- a/src/ox/fs/filesystem/passthroughfs.cpp +++ b/src/ox/fs/filesystem/passthroughfs.cpp @@ -102,7 +102,7 @@ Result 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}; }