diff options
Diffstat (limited to 'src/mongo/db/storage/storage_engine_lock_file_posix.cpp')
-rw-r--r-- | src/mongo/db/storage/storage_engine_lock_file_posix.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/storage/storage_engine_lock_file_posix.cpp b/src/mongo/db/storage/storage_engine_lock_file_posix.cpp index e08764a4aa9..46a9d6246a6 100644 --- a/src/mongo/db/storage/storage_engine_lock_file_posix.cpp +++ b/src/mongo/db/storage/storage_engine_lock_file_posix.cpp @@ -130,8 +130,7 @@ bool StorageEngineLockFile::createdByUncleanShutdown() const { Status StorageEngineLockFile::open() { try { if (!boost::filesystem::exists(_dbpath)) { - return Status(ErrorCodes::NonExistentPath, - str::stream() << "Data directory " << _dbpath << " not found."); + return Status(ErrorCodes::NonExistentPath, _getNonExistentPathMessage()); } } catch (const std::exception& ex) { return Status(ErrorCodes::UnknownError, |