mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-22 04:25:21 +00:00
vmm: use inspect_err instead of map_err
Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
parent
422906a0c7
commit
bd8c28d341
@ -913,9 +913,8 @@ impl Vmm {
|
||||
// And then read the memory itself
|
||||
memory_manager
|
||||
.receive_memory_regions(&table, socket)
|
||||
.map_err(|e| {
|
||||
.inspect_err(|_| {
|
||||
Response::error().write_to(socket).ok();
|
||||
e
|
||||
})?;
|
||||
Response::ok().write_to(socket)?;
|
||||
Ok(())
|
||||
|
Loading…
x
Reference in New Issue
Block a user