[ox/fs] Add error message to an error

This commit is contained in:
Gary Talent 2023-02-03 02:02:57 -06:00
parent 8bcffc73ff
commit 26a1f2e4ad

View File

@ -319,7 +319,7 @@ Error FileStoreTemplate<size_t>::read(InodeId_t id, void *out, FsSize_t outSize,
// error check // error check
if (!src.valid()) { if (!src.valid()) {
oxTracef("ox::fs::FileStoreTemplate::read::fail", "Could not find requested item: {}", id); oxTracef("ox::fs::FileStoreTemplate::read::fail", "Could not find requested item: {}", id);
return OxError(1); return OxError(1, "Could not find requested item");
} }
auto srcData = m_buffer->template dataOf<uint8_t>(src); auto srcData = m_buffer->template dataOf<uint8_t>(src);