From 4a779f43bdb1c665991f194922cd997058120fb9 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Tue, 14 Oct 2014 10:58:01 +0200 Subject: [PATCH] vhdlpp: Fix error message for 'right attribute. --- vhdlpp/expression_evaluate.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vhdlpp/expression_evaluate.cc b/vhdlpp/expression_evaluate.cc index 0bdb8bded..2f506eb28 100644 --- a/vhdlpp/expression_evaluate.cc +++ b/vhdlpp/expression_evaluate.cc @@ -122,8 +122,8 @@ bool ExpAttribute::evaluate(Entity*ent, Architecture*arc, int64_t&val) const const VTypeArray*arr = dynamic_cast(base_type); if (arr == 0) { cerr << get_fileline() << ": error: " - << "Cannot apply the 'left attribute to non-array objects" - << endl; + << "Cannot apply the '" << name_ + << " attribute to non-array objects" << endl; return false; }