vmm: use inspect_err instead of map_err

Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
Wei Liu 2024-07-23 19:47:19 +00:00 committed by Rob Bradford
parent 422906a0c7
commit bd8c28d341

View File

@ -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(())