Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

SERVER-12194 Better error message when an invalid role is encountered…

… during role graph initialization
  • Loading branch information...
commit 5faea8c7afbeaf271539e536dd9fee7f5be8723e 1 parent 6ebe63c
@stbrody stbrody authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/mongo/db/auth/authz_manager_external_state_local.cpp
View
3  src/mongo/db/auth/authz_manager_external_state_local.cpp
@@ -297,7 +297,8 @@ namespace {
void addRoleFromDocumentOrWarn(RoleGraph* roleGraph, const BSONObj& doc) {
Status status = roleGraph->addRoleFromDocument(doc);
if (!status.isOK()) {
- warning() << "Skipping invalid role document. " << status << "; document " << doc;
+ warning() << "Skipping invalid admin.system.roles document while calculating privileges"
+ " for user-defined roles: " << status << "; document " << doc;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.