summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/check_sharding_index_command.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/check_sharding_index_command.cpp')
-rw-r--r--src/mongo/db/s/check_sharding_index_command.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/s/check_sharding_index_command.cpp b/src/mongo/db/s/check_sharding_index_command.cpp
index 2d0d499fb1b..b638c9a0e7d 100644
--- a/src/mongo/db/s/check_sharding_index_command.cpp
+++ b/src/mongo/db/s/check_sharding_index_command.cpp
@@ -202,9 +202,8 @@ public:
if (PlanExecutor::DEAD == state || PlanExecutor::FAILURE == state) {
return CommandHelpers::appendCommandStatus(
result,
- Status(ErrorCodes::OperationFailed,
- str::stream() << "Executor error while checking sharding index: "
- << WorkingSetCommon::toStatusString(currKey)));
+ WorkingSetCommon::getMemberObjectStatus(currKey).withContext(
+ "Executor error while checking sharding index"));
}
return true;