From ee396957226e2273bc60ede7192c27038c432f24 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 24 Jul 2008 11:36:40 -0400 Subject: Parsing now works again. And there was much rejoicing. --- main.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'main.cc') diff --git a/main.cc b/main.cc index 0bea426c..28b8edc3 100644 --- a/main.cc +++ b/main.cc @@ -205,12 +205,15 @@ static int read_and_report(ledger::report_t& report, int argc, char * argv[], journal_t& journal(*session.create_journal()); - if (! session.read_data(journal, report.account)) + std::size_t count = session.read_data(journal, report.account); + if (count == 0) throw_(parse_error, "Failed to locate any journal entries; " "did you specify a valid file with -f?"); INFO_FINISH(journal); + INFO("Found " << count << " entries"); + TRACE_FINISH(entry_text, 1); TRACE_FINISH(entry_date, 1); TRACE_FINISH(entry_details, 1); -- cgit v1.2.3