Fix error message of enum_parse-based attributes

This commit is contained in:
elkowar 2022-05-26 13:13:35 +02:00
parent 52e14d8263
commit 00ff1dc492
No known key found for this signature in database
GPG key ID: E321AD71B1D1F27F

View file

@ -56,7 +56,7 @@ macro_rules! enum_parse {
let input = $input.to_lowercase(); let input = $input.to_lowercase();
match input.as_str() { match input.as_str() {
$( $( $s )|* => Ok($val) ),*, $( $( $s )|* => Ok($val) ),*,
_ => Err(anyhow!(concat!("Couldn't parse ", $name, ": '{}'. Possible values are ", $($($s),*),*), input)) _ => Err(anyhow!(concat!("Couldn't parse ", $name, ": '{}'. Possible values are ", $($($s, " "),*),*), input))
} }
}; };
} }