From 1ee16304b4dcd13f2ed7103915c347e6ae67f109 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 20 Jun 2010 20:58:07 -0400 Subject: Transactions no longer needed for budget/forecast This means you can forecast or budget against a file containing only periodic transactions. --- src/session.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/session.cc') diff --git a/src/session.cc b/src/session.cc index 85b5fab2..65ed0bc2 100644 --- a/src/session.cc +++ b/src/session.cc @@ -161,14 +161,16 @@ void session_t::read_journal_files() if (HANDLED(master_account_)) master_account = HANDLER(master_account_).str(); - std::size_t count = read_data(master_account); - if (count == 0) - throw_(parse_error, - _("Failed to locate any transactions; did you specify a valid file with -f?")); +#if defined(DEBUG_ON) + std::size_t count = +#endif + read_data(master_account); INFO_FINISH(journal); +#if defined(DEBUG_ON) INFO("Found " << count << " transactions"); +#endif } void session_t::close_journal_files() -- cgit v1.2.3