summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/commands_public.cpp
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2017-10-24 12:27:15 -0400
committerMathias Stearn <mathias@10gen.com>2017-11-02 14:25:21 -0400
commita963b8641cf2ab2cd0ccbbde04993a8224dcf52a (patch)
treef976216a9b16d32f277d598db65b2fcd4ca43e9d /src/mongo/s/commands/commands_public.cpp
parentd244eadffa8eb5aa714e3e881922c19532e1bd8b (diff)
downloadmongo-a963b8641cf2ab2cd0ccbbde04993a8224dcf52a.tar.gz
SERVER-31629 Replace ErrorCodes::fromInt() with ErrorCodes::Error()
No reason to have two ways to express the same thing, and we can't get rid of ErrorCodes::Error().
Diffstat (limited to 'src/mongo/s/commands/commands_public.cpp')
-rw-r--r--src/mongo/s/commands/commands_public.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/commands/commands_public.cpp b/src/mongo/s/commands/commands_public.cpp
index 052b62ed215..d1613c8967c 100644
--- a/src/mongo/s/commands/commands_public.cpp
+++ b/src/mongo/s/commands/commands_public.cpp
@@ -487,7 +487,7 @@ public:
int code = getUniqueCodeFromCommandResults(results);
if (code != 0) {
output.append("code", code);
- output.append("codeName", ErrorCodes::errorString(ErrorCodes::fromInt(code)));
+ output.append("codeName", ErrorCodes::errorString(ErrorCodes::Error(code)));
}
if (errored) {