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:
parent
92368e6f00
commit
f6e8243d96
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user