diff options
Diffstat (limited to 'src/mongo/unittest/temp_dir.cpp')
-rw-r--r-- | src/mongo/unittest/temp_dir.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mongo/unittest/temp_dir.cpp b/src/mongo/unittest/temp_dir.cpp index ab8ec61f548..88b274883f9 100644 --- a/src/mongo/unittest/temp_dir.cpp +++ b/src/mongo/unittest/temp_dir.cpp @@ -61,17 +61,16 @@ MONGO_INITIALIZER(SetTempDirDefaultRoot)(InitializerContext* context) { } if (!boost::filesystem::exists(defaultRoot)) { - return Status(ErrorCodes::BadValue, - str::stream() << "Attempted to use a tempPath (" << defaultRoot.string() - << ") that doesn't exist"); + uasserted(ErrorCodes::BadValue, + str::stream() << "Attempted to use a tempPath (" << defaultRoot.string() + << ") that doesn't exist"); } if (!boost::filesystem::is_directory(defaultRoot)) { - return Status(ErrorCodes::BadValue, - str::stream() << "Attempted to use a tempPath (" << defaultRoot.string() - << ") that exists, but isn't a directory"); + uasserted(ErrorCodes::BadValue, + str::stream() << "Attempted to use a tempPath (" << defaultRoot.string() + << ") that exists, but isn't a directory"); } - return Status::OK(); } } // namespace |