summaryrefslogtreecommitdiff
path: root/src/mongo/s/client/shard_remote.cpp
diff options
context:
space:
mode:
authorEsha Maharishi <esha.maharishi@mongodb.com>2017-07-11 13:21:33 -0400
committerEsha Maharishi <esha.maharishi@mongodb.com>2017-07-11 13:32:37 -0400
commitdbfb143d4b77228d6e27432a16e9afc6c3c4c3f5 (patch)
treeed8310f7f7d198f009d7e799ca680173b55829d6 /src/mongo/s/client/shard_remote.cpp
parent42a1339774964f645a3991c3629aa655ffb05cf2 (diff)
downloadmongo-dbfb143d4b77228d6e27432a16e9afc6c3c4c3f5.tar.gz
SERVER-30091 improve default error message for failing to run a remote command in ShardRemote::_runCommand
Diffstat (limited to 'src/mongo/s/client/shard_remote.cpp')
-rw-r--r--src/mongo/s/client/shard_remote.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/s/client/shard_remote.cpp b/src/mongo/s/client/shard_remote.cpp
index bf236baf0a3..e75af4c8554 100644
--- a/src/mongo/s/client/shard_remote.cpp
+++ b/src/mongo/s/client/shard_remote.cpp
@@ -192,7 +192,8 @@ StatusWith<Shard::CommandResponse> ShardRemote::_runCommand(OperationContext* op
requestTimeout < Milliseconds::max() ? requestTimeout : RemoteCommandRequest::kNoTimeout);
RemoteCommandResponse response =
- Status(ErrorCodes::InternalError, "Internal error running command");
+ Status(ErrorCodes::InternalError,
+ str::stream() << "Failed to run remote command request " << request.toString());
TaskExecutor* executor = Grid::get(opCtx)->getExecutorPool()->getFixedExecutor();
auto swCallbackHandle = executor->scheduleRemoteCommand(