From 009b25739728de755892fdc542038c570ba67ba6 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 10 Nov 2009 01:05:44 -0500 Subject: It's now an error to use "end" without "account" --- src/textual.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/textual.cc') diff --git a/src/textual.cc b/src/textual.cc index 238098f1..ca7aa190 100644 --- a/src/textual.cc +++ b/src/textual.cc @@ -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(); } -- cgit v1.2.3