mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
option_parser: Fix incorrect error message
The error message for the InvalidSyntax was copied from UnknownOption. Correct it to "invalid syntax". Signed-off-by: Rob Bradford <rbradford@meta.com>
This commit is contained in:
@@ -73,7 +73,7 @@ pub enum OptionParserError {
|
||||
#[error("unknown option: {0}")]
|
||||
UnknownOption(String),
|
||||
/// The input string has invalid syntax (unbalanced quotes/brackets, missing `=`).
|
||||
#[error("unknown option: {0}")]
|
||||
#[error("invalid syntax: {0}")]
|
||||
InvalidSyntax(String),
|
||||
/// A value could not be converted to the requested type.
|
||||
#[error("unable to convert {1} for {0}")]
|
||||
|
||||
Reference in New Issue
Block a user