summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2005-02-13 23:27:02 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:40:59 -0400
commit10c78678bc07cb73036091582ce3b4c2bf0ec34d (patch)
tree1920d74467dbbee558d35221bea0b4e1044f3a96
parent32df4dd5631462c05471734d5d684d0f01c6fc6f (diff)
downloadfork-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.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/textual.cc b/textual.cc
index 1982d29d..a95bc4c6 100644
--- a/textual.cc
+++ b/textual.cc
@@ -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");