From 10c78678bc07cb73036091582ce3b4c2bf0ec34d Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 13 Feb 2005 23:27:02 +0000 Subject: (parse): When an entry does not balance, print the entry so the user can see what Ledger saw. --- textual.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'textual.cc') 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"); -- cgit v1.2.3