diff options
author | John Wiegley <johnw@newartisans.com> | 2013-01-29 09:33:38 -0800 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2013-01-29 09:33:38 -0800 |
commit | a5adcaad3e38efdad19aa14fa2bb73044936c8f9 (patch) | |
tree | be89280824d5363f4c9080d55d25487c8f80c243 /src/session.cc | |
parent | 0385ef35b1d6b2af36ccc093264ca8122cc3ae98 (diff) | |
parent | aba5c1aa465c6ad92839fc9259a6a21d2292192e (diff) | |
download | fork-ledger-a5adcaad3e38efdad19aa14fa2bb73044936c8f9.tar.gz fork-ledger-a5adcaad3e38efdad19aa14fa2bb73044936c8f9.tar.bz2 fork-ledger-a5adcaad3e38efdad19aa14fa2bb73044936c8f9.zip |
Merge pull request #133 from enderw88/Bug705-862-init-file-and-pricedb
Fixes bugs 705 and 862.
Diffstat (limited to 'src/session.cc')
-rw-r--r-- | src/session.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/session.cc b/src/session.cc index f047a540..f9815c3f 100644 --- a/src/session.cc +++ b/src/session.cc @@ -98,8 +98,12 @@ std::size_t session_t::read_data(const string& master_account) acct = journal->find_account(master_account); optional<path> price_db_path; - if (HANDLED(price_db_)) + if (HANDLED(price_db_)){ price_db_path = resolve_path(HANDLER(price_db_).str()); + if (!exists(price_db_path.get())){ + throw_(parse_error, _f("Could not find specified price file %1%") % price_db_path); + } + } if (HANDLED(explicit)) journal->force_checking = true; |