It's now an error to use "end" without "account"

This commit is contained in:
John Wiegley 2009-11-10 01:05:44 -05:00
parent 09c9ec4b41
commit 009b257397

View file

@ -643,9 +643,9 @@ void instance_t::account_directive(char * line)
void instance_t::end_directive(char *)
{
if (account_stack.empty())
if (account_stack.size() <= 1)
throw_(std::runtime_error,
_("'end' directive found, but no account currently active"));
_("'end' directive found, but no master account currently active"));
else
account_stack.pop_back();
}