summaryrefslogtreecommitdiff
path: root/src/session.cc
diff options
context:
space:
mode:
authorCraig Earls <enderw88@gmail.com>2013-01-29 10:34:34 -0700
committerCraig Earls <enderw88@gmail.com>2013-01-29 10:34:34 -0700
commit097a9c7b386c6472fa426bb7c2115599f7f2e750 (patch)
tree759a6ac032018ea420efa2f660fea7910486d4e6 /src/session.cc
parentc18d0663a536f3291c70ca82a520b477325968e9 (diff)
parentaba5c1aa465c6ad92839fc9259a6a21d2292192e (diff)
downloadfork-ledger-097a9c7b386c6472fa426bb7c2115599f7f2e750.tar.gz
fork-ledger-097a9c7b386c6472fa426bb7c2115599f7f2e750.tar.bz2
fork-ledger-097a9c7b386c6472fa426bb7c2115599f7f2e750.zip
Merge branch 'Bug705-862-init-file-and-pricedb' into kitchen-sink
Diffstat (limited to 'src/session.cc')
-rw-r--r--src/session.cc6
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;