summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec
diff options
context:
space:
mode:
authorCharlie Swanson <charlie.swanson@mongodb.com>2018-03-07 12:29:22 -0500
committerCharlie Swanson <charlie.swanson@mongodb.com>2018-03-12 14:59:17 -0400
commit3f723beb10caf6bd809b7df05c34b6a97402dadb (patch)
tree170e3d1c38808281fb216f4e934abcd336b1743c /src/mongo/db/exec
parentb1102c617e04ff751d702435f9d4521727e579e1 (diff)
downloadmongo-3f723beb10caf6bd809b7df05c34b6a97402dadb.tar.gz
SERVER-33542 Avoid swallowing error codes from PlanExecutor errors
Diffstat (limited to 'src/mongo/db/exec')
-rw-r--r--src/mongo/db/exec/stagedebug_cmd.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/db/exec/stagedebug_cmd.cpp b/src/mongo/db/exec/stagedebug_cmd.cpp
index 92b9908f2a3..6d6bfc1a896 100644
--- a/src/mongo/db/exec/stagedebug_cmd.cpp
+++ b/src/mongo/db/exec/stagedebug_cmd.cpp
@@ -211,10 +211,8 @@ public:
return CommandHelpers::appendCommandStatus(
result,
- Status(ErrorCodes::OperationFailed,
- str::stream() << "Executor error during "
- << "StageDebug command: "
- << WorkingSetCommon::toStatusString(obj)));
+ WorkingSetCommon::getMemberObjectStatus(obj).withContext(
+ "Executor error during StageDebug command"));
}
return true;