0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

Better message if dbpath does not exist

This commit is contained in:
Aaron 2009-01-21 11:44:40 -05:00
parent 92368e6f00
commit f6e8243d96

View File

@ -293,6 +293,10 @@ namespace mongo {
void segvhandler(int x);
void initAndListen(int listenPort, const char *appserverLoc = null) {
stringstream ss;
ss << "dbpath (" << dbpath << ") does not exist";
massert( ss.str().c_str(), boost::filesystem::exists( dbpath ) );
clearTmpFiles();
if ( opLogging )