summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/storage_engine_lock_file_windows.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/storage/storage_engine_lock_file_windows.cpp')
-rw-r--r--src/mongo/db/storage/storage_engine_lock_file_windows.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/storage/storage_engine_lock_file_windows.cpp b/src/mongo/db/storage/storage_engine_lock_file_windows.cpp
index 97bd280c3fe..b141044246d 100644
--- a/src/mongo/db/storage/storage_engine_lock_file_windows.cpp
+++ b/src/mongo/db/storage/storage_engine_lock_file_windows.cpp
@@ -104,8 +104,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,