diff options
Diffstat (limited to 'src/mongo/client/dbclient_rs.cpp')
-rw-r--r-- | src/mongo/client/dbclient_rs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/client/dbclient_rs.cpp b/src/mongo/client/dbclient_rs.cpp index 2803536e397..13d706b7cd6 100644 --- a/src/mongo/client/dbclient_rs.cpp +++ b/src/mongo/client/dbclient_rs.cpp @@ -367,7 +367,7 @@ void DBClientReplicaSet::_authConnection(DBClientConnection* conn) { for (map<string, BSONObj>::const_iterator i = _auths.begin(); i != _auths.end(); ++i) { try { conn->auth(i->second); - } catch (const UserException&) { + } catch (const AssertionException&) { warning() << "cached auth failed for set: " << _setName << " db: " << i->second[saslCommandUserDBFieldName].str() << " user: " << i->second[saslCommandUserFieldName].str() << endl; @@ -380,7 +380,7 @@ void DBClientReplicaSet::logoutAll(DBClientConnection* conn) { BSONObj response; try { conn->logout(i->first, response); - } catch (const UserException& ex) { + } catch (const AssertionException& ex) { warning() << "Failed to logout: " << conn->getServerAddress() << " on db: " << i->first << causedBy(redact(ex)); } |