summaryrefslogtreecommitdiff
path: root/src/mongo/bson
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/bson
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/bson')
-rw-r--r--src/mongo/bson/ugly_bson_integration_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/bson/ugly_bson_integration_test.cpp b/src/mongo/bson/ugly_bson_integration_test.cpp
index 5cf99f07bda..a3f6bf11fdb 100644
--- a/src/mongo/bson/ugly_bson_integration_test.cpp
+++ b/src/mongo/bson/ugly_bson_integration_test.cpp
@@ -60,7 +60,7 @@ TEST_F(UglyBSONFixture, DuplicateFields) {
<< BSONArray()
<< "documents"
<< BSONArray()),
- ErrorCodes::fromInt(40413));
+ ErrorCodes::Error(40413));
}
} // namespace