diff --git a/src/lpython/semantics/python_ast_to_asr.cpp b/src/lpython/semantics/python_ast_to_asr.cpp index ea250d06a8..fe3efe6f40 100644 --- a/src/lpython/semantics/python_ast_to_asr.cpp +++ b/src/lpython/semantics/python_ast_to_asr.cpp @@ -3076,7 +3076,7 @@ class CommonVisitor : public AST::BaseVisitor { bool is_packed = false; if( !is_dataclass(x.m_decorator_list, x.n_decorator_list, algined_expr, is_packed) ) { - throw SemanticError("Only dataclass decorated classes and Enum subclasses are supported.", + throw SemanticError("Only dataclass-decorated classes and Enum subclasses are supported.", x.base.base.loc); }