From 5b2b6db7ed0a28d8b0c6cc901a08e36d96bc0df3 Mon Sep 17 00:00:00 2001 From: abdul124 Date: Thu, 22 Aug 2024 16:44:31 +0800 Subject: [PATCH] core: improve error messages --- nac3core/src/typecheck/type_inferencer/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nac3core/src/typecheck/type_inferencer/mod.rs b/nac3core/src/typecheck/type_inferencer/mod.rs index fc9ce2ec..a5b8cd49 100644 --- a/nac3core/src/typecheck/type_inferencer/mod.rs +++ b/nac3core/src/typecheck/type_inferencer/mod.rs @@ -1748,7 +1748,7 @@ impl<'a> Inferencer<'a> { Ok(Some(new_func)) } 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, ), }