[Yunq] Return status from client calls.
This commit is contained in:
parent
700f3f94cb
commit
c209925a3c
25 changed files with 102 additions and 112 deletions
|
|
@ -23,7 +23,11 @@ glcr::ErrorOr<PartitionInfo> HandleDenaliRegistration(z_cap_t endpoint_cap) {
|
|||
GptReader reader(
|
||||
glcr::UniquePtr<DenaliClient>(new DenaliClient(endpoint_cap)));
|
||||
|
||||
RET_ERR(reader.ParsePartitionTables());
|
||||
auto status = reader.ParsePartitionTables();
|
||||
if (!status.ok()) {
|
||||
dbgln("GPT Reader: {}", status.message());
|
||||
return status.code();
|
||||
}
|
||||
|
||||
return PartitionInfo{.device_id = 0,
|
||||
.partition_lba = reader.GetPrimaryPartitionLba()};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue