From e5496a093d50242144138d94b5022da6a31cfc84 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Tue, 14 Apr 2026 07:52:07 +0100 Subject: [PATCH] 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 --- option_parser/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/option_parser/src/lib.rs b/option_parser/src/lib.rs index 85d265f6a..e674507d4 100644 --- a/option_parser/src/lib.rs +++ b/option_parser/src/lib.rs @@ -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}")]