diff options
Diffstat (limited to 'src/mongo/rpc')
-rw-r--r-- | src/mongo/rpc/get_status_from_command_result.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/rpc/get_status_from_command_result.cpp b/src/mongo/rpc/get_status_from_command_result.cpp index ed0ad38824d..e63ed87100d 100644 --- a/src/mongo/rpc/get_status_from_command_result.cpp +++ b/src/mongo/rpc/get_status_from_command_result.cpp @@ -135,7 +135,8 @@ Status getFirstWriteErrorStatusFromCommandResult(const BSONObj& cmdResponse) { auto firstWriteErrorObj = firstWriteErrorElem.Obj(); return Status(ErrorCodes::Error(firstWriteErrorObj["code"].Int()), - firstWriteErrorObj["errmsg"].String()); + firstWriteErrorObj["errmsg"].String(), + firstWriteErrorObj); } Status getStatusFromWriteCommandReply(const BSONObj& cmdResponse) { |