Skip to content

Commit

Permalink
Update src/lpython/semantics/python_ast_to_asr.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Thirumalai Shaktivel <[email protected]>
  • Loading branch information
tanay-man and Thirumalai-Shaktivel committed Aug 18, 2024
1 parent 57c71dd commit 3f01079
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lpython/semantics/python_ast_to_asr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8161,7 +8161,8 @@ we will have to use something else.
} else if ( der->m_parent ) {
ASR::Struct_t* parent = ASR::down_cast<ASR::Struct_t>(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);
}
Expand Down

0 comments on commit 3f01079

Please sign in to comment.