vmm: streamline error messages

In [0] we agreed on the current format.

[0] https://github.com/cloud-hypervisor/cloud-hypervisor/pull/7066

On-behalf-of: SAP philipp.schuster@sap.com
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
This commit is contained in:
Philipp Schuster
2026-06-25 13:29:23 +02:00
committed by Bo Chen
parent 40d8f9ee51
commit 90429c56c8
6 changed files with 12 additions and 14 deletions

View File

@@ -313,7 +313,7 @@ pub enum VmReceiveMigrationConfigError {
#[error("Error parsing receive migration parameters")]
ParseError(#[source] OptionParserError),
#[error("Error validating receive migration parameters")]
#[error("Error validating receive migration parameters: {0}")]
ValidationError(String),
}
@@ -422,7 +422,7 @@ pub enum VmSendMigrationConfigError {
)]
InvalidDestinationUrl(#[source] TcpAddressParseError),
#[error("Error validating send migration parameters")]
#[error("Error validating send migration parameters: {0}")]
ValidationError(String),
}