minor: just use std::runtime_error to be compatable with older versions of boost

This commit is contained in:
Mike Dirolf
2009-09-18 18:30:19 -04:00
parent 4a3c382889
commit 91b5884ffe

View File

@@ -172,7 +172,7 @@ namespace mongo {
boost::filesystem::remove_all(p);
}
boost::filesystem::create_directory(p);
} catch (boost::filesystem::basic_filesystem_error<boost::filesystem::path> &e) {}
} catch (std::runtime_error &e) {}
string dbpathString = p.native_directory_string();
dbpath = dbpathString.c_str();