Skip to content

Commit 7620ce6

Browse files
authored
Argument cast error should contain method & arg name (#28)
1 parent 3b09939 commit 7620ce6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

derive/src/impl_attribute.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ pub fn godot_script_impl(
7474
#godot_types::prelude::FromGodot::try_from_variant(
7575
args.get(#index).ok_or(#godot_types::sys::GDEXTENSION_CALL_ERROR_TOO_FEW_ARGUMENTS)?
7676
).map_err(|err| {
77-
#godot_types::log::godot_error!("failed to convert variant: {}", err);
77+
#godot_types::log::godot_error!("failed to convert variant for argument {} of {}: {}", stringify!(#arg_name), #fn_name_str, err);
7878
#godot_types::sys::GDEXTENSION_CALL_ERROR_INVALID_ARGUMENT
7979
})?
8080
}

0 commit comments

Comments
 (0)