diff options
Diffstat (limited to 'src/mongo/db/auth/authorization_session.cpp')
-rw-r--r-- | src/mongo/db/auth/authorization_session.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/auth/authorization_session.cpp b/src/mongo/db/auth/authorization_session.cpp index 201acb11b00..86cba41f616 100644 --- a/src/mongo/db/auth/authorization_session.cpp +++ b/src/mongo/db/auth/authorization_session.cpp @@ -200,10 +200,10 @@ User* AuthorizationSession::getSingleUser() { if (userNameItr.more()) { userName = userNameItr.next(); if (userNameItr.more()) { - uasserted(ErrorCodes::Unauthorized, "there are no users authenticated"); + uasserted(ErrorCodes::Unauthorized, "too many users are authenticated"); } } else { - uasserted(ErrorCodes::Unauthorized, "too many users are authenticated"); + uasserted(ErrorCodes::Unauthorized, "there are no users authenticated"); } return lookupUser(userName); |