diff options
author | John Wiegley <johnw@newartisans.com> | 2005-02-13 23:27:02 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:40:59 -0400 |
commit | 10c78678bc07cb73036091582ce3b4c2bf0ec34d (patch) | |
tree | 1920d74467dbbee558d35221bea0b4e1044f3a96 | |
parent | 32df4dd5631462c05471734d5d684d0f01c6fc6f (diff) | |
download | fork-ledger-10c78678bc07cb73036091582ce3b4c2bf0ec34d.tar.gz fork-ledger-10c78678bc07cb73036091582ce3b4c2bf0ec34d.tar.bz2 fork-ledger-10c78678bc07cb73036091582ce3b4c2bf0ec34d.zip |
(parse): When an entry does not balance, print the entry so the user
can see what Ledger saw.
-rw-r--r-- | textual.cc | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -572,8 +572,9 @@ unsigned int textual_parser_t::parse(std::istream& in, entry->end_pos = in.tellg(); count++; } else { + print_entry(std::cerr, *entry); delete entry; - throw parse_error(path, first_line, "Entry does not balance"); + throw parse_error(path, first_line, "Entry above does not balance"); } } else { throw parse_error(path, first_line, "Failed to parse entry"); |