Improve error message in victoriafalls ext2 reader.

This commit is contained in:
Drew Galbraith 2025-02-01 14:08:59 -08:00
parent 00f2424987
commit 5ec05f9a88
1 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ glcr::ErrorOr<mmth::OwnedMemoryRegion> Ext2BlockReader::ReadBlocks(
ReadResponse resp;
auto status = denali_.Read(req, resp);
if (!status.ok()) {
dbgln("Failed to read blocks: {}", status.message());
dbgln("Failed to read block: {}", status.code());
return status.code();
}
return mmth::OwnedMemoryRegion::FromCapability(resp.memory());
@ -102,7 +102,7 @@ glcr::ErrorOr<mmth::OwnedMemoryRegion> Ext2BlockReader::ReadBlocks(
ReadResponse resp;
auto status = denali_.ReadMany(req, resp);
if (!status.ok()) {
dbgln("Failed to read blocks: {}", status.message());
dbgln("Failed to read blocks: {}", status.code());
return status.code();
}
return mmth::OwnedMemoryRegion::FromCapability(resp.memory());