diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-23 19:31:06 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-23 19:31:06 -0400 |
commit | eda6cbd0146d371653feec70e0eb3ee4e4c56379 (patch) | |
tree | aeb4e1ace0f9b284789f66f3ceb30bed66946b93 /src/session.cc | |
parent | 014fde3418783d1ee1ec7fe4ea6c8b04ae7f6cd8 (diff) | |
parent | 93807fade69dd4f0ec575eda78fe1a77a85c24e3 (diff) | |
download | fork-ledger-eda6cbd0146d371653feec70e0eb3ee4e4c56379.tar.gz fork-ledger-eda6cbd0146d371653feec70e0eb3ee4e4c56379.tar.bz2 fork-ledger-eda6cbd0146d371653feec70e0eb3ee4e4c56379.zip |
Merge branch 'next'
Diffstat (limited to 'src/session.cc')
-rw-r--r-- | src/session.cc | 10 |
1 files changed, 6 insertions, 4 deletions
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() |