Better error message
This commit is contained in:
parent
723f3e141c
commit
2d0834f1d8
@ -368,7 +368,7 @@ type_t *get_method_type(env_t *env, ast_t *self, const char *name)
|
||||
{
|
||||
binding_t *b = get_namespace_binding(env, self, name);
|
||||
if (!b || !b->type)
|
||||
code_err(self, "No such method: %s", name);
|
||||
code_err(self, "No such method: %T:%s(...)", get_type(env, self), name);
|
||||
return b->type;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user