diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-10 01:05:44 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-10 01:05:44 -0500 |
commit | 009b25739728de755892fdc542038c570ba67ba6 (patch) | |
tree | 83a3cff40d7cf78df576cfa33da8c121f1ef0f99 /src | |
parent | 09c9ec4b41fa93c2a4637b5715bbb8dedf875192 (diff) | |
download | fork-ledger-009b25739728de755892fdc542038c570ba67ba6.tar.gz fork-ledger-009b25739728de755892fdc542038c570ba67ba6.tar.bz2 fork-ledger-009b25739728de755892fdc542038c570ba67ba6.zip |
It's now an error to use "end" without "account"
Diffstat (limited to 'src')
-rw-r--r-- | src/textual.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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(); } |