Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gurinderu committed Jul 31, 2024
1 parent 56e8faf commit 77883c5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions crates/vm-utils/src/vm_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,35 +36,35 @@ impl CreateVMDomainParams {

#[derive(Error, Debug)]
pub enum VMUtilsError {
#[error("Failed to connect to the hypervisor")]
#[error("Failed to connect to the hypervisor: {err}")]
FailedToConnect {
#[source]
err: virt::error::Error,
},
#[error("Failed to create VM domain")]
#[error("Failed to create VM domain: {err}")]
FailedToCreateVMDomain {
#[source]
err: virt::error::Error,
},
#[error("Failed to remove VM domain {name}")]
#[error("Failed to remove VM domain {name}: {err}")]
FailedToRemoveVMDomain {
#[source]
err: virt::error::Error,
name: String,
},
#[error("Failed to create VM {name}")]
#[error("Failed to create VM {name}: {err}")]
FailedToStartVM {
#[source]
err: virt::error::Error,
name: String,
},
#[error("Could not find VM with name {name}")]
#[error("Could not find VM with name {name}: {err}")]
VmNotFound {
name: String,
#[source]
err: virt::error::Error,
},
#[error("Failed to shutdown VM")]
#[error("Failed to shutdown VM: {err}")]
FailedToStopVM {
#[source]
err: virt::error::Error,
Expand Down

0 comments on commit 77883c5

Please sign in to comment.