From 9044bf168ab0d8d6df03034898b1e5a4cb1559e8 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 13 May 2007 09:27:26 +0000 Subject: *** no comment *** --- src/session.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/session.cc') 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); -- cgit v1.2.3