Skip to content

Commit f5e7223

Browse files
Improve comment and error message
Co-authored-by: Simon Warta <[email protected]>
1 parent 7a04eee commit f5e7223

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/derive/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,11 @@ fn expand_bindings(crate_path: &syn::Path, mut function: syn::ItemFn) -> TokenSt
134134
if fn_name == "migrate_with_info" {
135135
return syn::Error::new_spanned(
136136
&function.sig.ident,
137-
r#"To use the new migrate function signature, you should provide a "migrate" entry point, not "migrate_with_info""#,
137+
r#"To use the new migrate function signature, you should provide a "migrate" entry point with 4 arguments, not "migrate_with_info""#,
138138
).into_compile_error();
139139
}
140140

141-
// Migrate entry point can take 2 or 3 arguments
141+
// Migrate entry point can take 2 or 3 arguments (not counting deps)
142142
let do_call = if fn_name == "migrate" && args == 3 {
143143
format_ident!("do_migrate_with_info")
144144
} else {

0 commit comments

Comments
 (0)