summaryrefslogtreecommitdiff
path: root/src/session.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-13 09:27:26 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:49 -0400
commit9044bf168ab0d8d6df03034898b1e5a4cb1559e8 (patch)
treecc5233bf5394f72b1b2cb7aa866cd8b67ff9d346 /src/session.cc
parent994fb346993ddee2eaa4fb57eba2575636012b1a (diff)
downloadfork-ledger-9044bf168ab0d8d6df03034898b1e5a4cb1559e8.tar.gz
fork-ledger-9044bf168ab0d8d6df03034898b1e5a4cb1559e8.tar.bz2
fork-ledger-9044bf168ab0d8d6df03034898b1e5a4cb1559e8.zip
*** no comment ***
Diffstat (limited to 'src/session.cc')
-rw-r--r--src/session.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/session.cc b/src/session.cc
index 3cd4e169..41591018 100644
--- a/src/session.cc
+++ b/src/session.cc
@@ -93,8 +93,7 @@ unsigned int session_t::read_journal(const path& pathname,
journal->sources.push_back(pathname);
if (! exists(pathname))
- throw filesystem_error(BOOST_CURRENT_FUNCTION, pathname,
- "Cannot read file");
+ throw_(std::logic_error, "Cannot read file" << pathname);
ifstream stream(pathname);
return read_journal(stream, journal, master,
@@ -107,8 +106,7 @@ void session_t::read_init()
return;
if (! exists(*init_file))
- throw filesystem_error(BOOST_CURRENT_FUNCTION, *init_file,
- "Cannot read init file");
+ throw_(std::logic_error, "Cannot read init file" << *init_file);
ifstream init(*init_file);