mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-06-30 15:02:37 +00:00
option_parser: Improve error message to indicate conversion error
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
ea58d2f68a
commit
19957d4fa4
|
@ -31,7 +31,7 @@ impl fmt::Display for OptionParserError {
|
|||
OptionParserError::UnknownOption(s) => write!(f, "unknown option: {}", s),
|
||||
OptionParserError::InvalidSyntax(s) => write!(f, "invalid syntax:{}", s),
|
||||
OptionParserError::Conversion(field, value) => {
|
||||
write!(f, "unable to parse {} for {}", value, field)
|
||||
write!(f, "unable to convert {} for {}", value, field)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user