[ox/fs] Add error message to an error
This commit is contained in:
parent
8bcffc73ff
commit
26a1f2e4ad
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user