Skip to content

Commit 8cb50b4

Browse files
author
toasteater
committed
Use the correct variant name for FromVariant errors
Close #665
1 parent 54352b8 commit 8cb50b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gdnative-derive/src/variant/from.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ pub(crate) fn expand_from_variant(derive_data: DeriveData) -> Result<TokenStream
8787
#ref_var_ident_string_literals => {
8888
let #var_input_ident_iter = &__dict.get(&__keys.get(0));
8989
(#var_from_variants).map_err(|err| FVE::InvalidEnumVariant {
90-
variant: "Ok",
90+
variant: #ref_var_ident_string_literals,
9191
error: Box::new(err),
9292
})
9393
},

0 commit comments

Comments
 (0)