mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Fix copy and paste error message
vm_remove_device was copied from vm_add_device but the error message wasn't correctly updated. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
+1
-1
@@ -405,7 +405,7 @@ impl Vmm {
|
|||||||
fn vm_remove_device(&mut self, id: String) -> result::Result<(), VmError> {
|
fn vm_remove_device(&mut self, id: String) -> result::Result<(), VmError> {
|
||||||
if let Some(ref mut vm) = self.vm {
|
if let Some(ref mut vm) = self.vm {
|
||||||
if let Err(e) = vm.remove_device(id) {
|
if let Err(e) = vm.remove_device(id) {
|
||||||
error!("Error when adding new device to the VM: {:?}", e);
|
error!("Error when removing new device to the VM: {:?}", e);
|
||||||
Err(e)
|
Err(e)
|
||||||
} else {
|
} else {
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|||||||
Reference in New Issue
Block a user