diff --git a/src/ox/fs/filesystem/passthroughfs.cpp b/src/ox/fs/filesystem/passthroughfs.cpp index 3ec86754a..5dafc2f99 100644 --- a/src/ox/fs/filesystem/passthroughfs.cpp +++ b/src/ox/fs/filesystem/passthroughfs.cpp @@ -151,9 +151,9 @@ Result PassThroughFS::stat(const char *path) const noexcept { const auto p = m_path / stripSlash(path); const FileType type = std::filesystem::is_directory(p, ec) ? FileType::Directory : FileType::NormalFile; - oxTracef("ox::fs::PassThroughFS::stat", "{} {}", ec.message().c_str(), path); + oxTracef("ox::fs::PassThroughFS::stat", "{} {}", ec.message(), path); const uint64_t size = type == FileType::Directory ? 0 : std::filesystem::file_size(p, ec); - oxTracef("ox::fs::PassThroughFS::stat", "{} {}", ec.message().c_str(), path); + oxTracef("ox::fs::PassThroughFS::stat", "{} {}", ec.message(), path); oxTracef("ox::fs::PassThroughFS::stat::size", "{} {}", path, size); oxReturnError(OxError(ec.value())); return FileStat{0, 0, size, type};