summaryrefslogtreecommitdiff
path: root/src/mongo/util/assert_util.h
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/util/assert_util.h
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/util/assert_util.h')
-rw-r--r--src/mongo/util/assert_util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/util/assert_util.h b/src/mongo/util/assert_util.h
index 1a3852cd328..ba6cfb94d33 100644
--- a/src/mongo/util/assert_util.h
+++ b/src/mongo/util/assert_util.h
@@ -113,7 +113,7 @@ protected:
}
DBException(int code, StringData msg)
- : DBException(Status(code ? ErrorCodes::fromInt(code) : ErrorCodes::UnknownError, msg)) {}
+ : DBException(Status(code ? ErrorCodes::Error(code) : ErrorCodes::UnknownError, msg)) {}
private:
static void traceIfNeeded(const DBException& e);