From a963b8641cf2ab2cd0ccbbde04993a8224dcf52a Mon Sep 17 00:00:00 2001 From: Mathias Stearn Date: Tue, 24 Oct 2017 12:27:15 -0400 Subject: 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(). --- src/mongo/util/assert_util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mongo/util/assert_util.h') 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); -- cgit v1.2.1