From 07137cc042fc312ae92db35167b8874a1adf2c21 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 27 Feb 2012 12:39:12 -0600 Subject: 'end apply' doesn't need a qualifier --- src/textual.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/textual.cc') diff --git a/src/textual.cc b/src/textual.cc index 0590bbfa..82065f3c 100644 --- a/src/textual.cc +++ b/src/textual.cc @@ -849,16 +849,16 @@ void instance_t::apply_year_directive(char * line) void instance_t::end_apply_directive(char * kind) { char * b = next_element(kind); - string name(b ? b : "account"); + string name(b ? b : " "); if (context.apply_stack.size() <= 1) throw_(std::runtime_error, - _("'end %1' found, but no enclosing '%2' directive") + _("'end apply%1' found, but no enclosing 'apply%2' directive") << name << name); - if (name != context.apply_stack.front().label) + if (name != " " && name != context.apply_stack.front().label) throw_(std::runtime_error, - _("'end %1' directive does not match 'apply %2' directive") + _("'end apply%1' directive does not match 'apply %2' directive") << name << context.apply_stack.front().label); context.apply_stack.pop_front(); -- cgit v1.2.3