It's now an error to use "end" without "account"
This commit is contained in:
parent
09c9ec4b41
commit
009b257397
1 changed files with 2 additions and 2 deletions
|
|
@ -643,9 +643,9 @@ void instance_t::account_directive(char * line)
|
||||||
|
|
||||||
void instance_t::end_directive(char *)
|
void instance_t::end_directive(char *)
|
||||||
{
|
{
|
||||||
if (account_stack.empty())
|
if (account_stack.size() <= 1)
|
||||||
throw_(std::runtime_error,
|
throw_(std::runtime_error,
|
||||||
_("'end' directive found, but no account currently active"));
|
_("'end' directive found, but no master account currently active"));
|
||||||
else
|
else
|
||||||
account_stack.pop_back();
|
account_stack.pop_back();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue