From 3f01079f943a959c7093027ebb0b1e302795ed27 Mon Sep 17 00:00:00 2001 From: tanay-man <93091118+tanay-man@users.noreply.github.com> Date: Sun, 18 Aug 2024 19:38:20 +0530 Subject: [PATCH] Update src/lpython/semantics/python_ast_to_asr.cpp Co-authored-by: Thirumalai Shaktivel <74826228+Thirumalai-Shaktivel@users.noreply.github.com> --- src/lpython/semantics/python_ast_to_asr.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lpython/semantics/python_ast_to_asr.cpp b/src/lpython/semantics/python_ast_to_asr.cpp index a975889011..70c1aab7e0 100644 --- a/src/lpython/semantics/python_ast_to_asr.cpp +++ b/src/lpython/semantics/python_ast_to_asr.cpp @@ -8161,7 +8161,8 @@ we will have to use something else. } else if ( der->m_parent ) { ASR::Struct_t* parent = ASR::down_cast(der->m_parent); if ( !parent->m_symtab->get_symbol(call_name) ) { - throw SemanticError("Method not found in the class or parents",loc); + throw SemanticError("Method not found in the class "+ std::string(der->m_name) + + " or it's parents",loc); } else { st = get_struct_member(der->m_parent, call_name, loc); }