diff options
Diffstat (limited to 'src/mongo/base/initializer_dependency_graph.cpp')
-rw-r--r-- | src/mongo/base/initializer_dependency_graph.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/base/initializer_dependency_graph.cpp b/src/mongo/base/initializer_dependency_graph.cpp index 7469f7e1138..c07b993ce36 100644 --- a/src/mongo/base/initializer_dependency_graph.cpp +++ b/src/mongo/base/initializer_dependency_graph.cpp @@ -49,7 +49,7 @@ Status InitializerDependencyGraph::addInitializer(std::string name, InitializerDependencyNode& newNode = _nodes[name]; if (newNode.initFn) { - return Status(ErrorCodes::DuplicateKey, name); + return Status(ErrorCodes::Error(50999), name); } newNode.initFn = std::move(initFn); |