mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-23 18:21:38 +03:00
Improve error message
This commit is contained in:
parent
f9851e1b97
commit
55c0665c39
@ -202,8 +202,8 @@ create_messages!(
|
|||||||
/// Parsed an unknown method call on the type of an expression.
|
/// Parsed an unknown method call on the type of an expression.
|
||||||
@formatted
|
@formatted
|
||||||
invalid_method_call {
|
invalid_method_call {
|
||||||
args: (expr: impl Display, func: impl Display),
|
args: (expr: impl Display, func: impl Display, num_args: impl Display),
|
||||||
msg: format!("The type of `{expr}` has no associated function `{func}`"),
|
msg: format!("The type of `{expr}` has no associated function `{func}` that takes {num_args} argument(s)."),
|
||||||
help: None,
|
help: None,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user