forked from M-Labs/nac3
core: improve error messages
This commit is contained in:
parent
15e62f467e
commit
5b2b6db7ed
@ -1748,7 +1748,7 @@ impl<'a> Inferencer<'a> {
|
|||||||
Ok(Some(new_func))
|
Ok(Some(new_func))
|
||||||
}
|
}
|
||||||
None => report_error(
|
None => report_error(
|
||||||
format!("Method {class_name}.{method_name} not found in ancestor list").as_str(),
|
format!("Ancestor method [{class_name}.{method_name}] should be defined with same decorator as its overridden version").as_str(),
|
||||||
*location,
|
*location,
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user