Fixed display problem in an error message

This commit is contained in:
John Wiegley 2012-02-28 00:08:21 -06:00
parent acb3c57332
commit 6d04f60573

View file

@ -853,12 +853,12 @@ void instance_t::end_apply_directive(char * kind)
if (context.apply_stack.size() <= 1) if (context.apply_stack.size() <= 1)
throw_(std::runtime_error, throw_(std::runtime_error,
_("'end apply%1' found, but no enclosing 'apply%2' directive") _("'end apply %1' found, but no enclosing 'apply %2' directive")
<< name << name); << name << name);
if (name != " " && name != context.apply_stack.front().label) if (name != " " && name != context.apply_stack.front().label)
throw_(std::runtime_error, throw_(std::runtime_error,
_("'end apply%1' directive does not match 'apply %2' directive") _("'end apply %1' directive does not match 'apply %2' directive")
<< name << context.apply_stack.front().label); << name << context.apply_stack.front().label);
context.apply_stack.pop_front(); context.apply_stack.pop_front();