Skip to content

Commit

Permalink
SERVER-7657
Browse files Browse the repository at this point in the history
Output Error when there is an exception updating replica set.
  • Loading branch information
daveh86 committed Nov 14, 2012
1 parent 93fdafc commit feacfec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mongo/s/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1042,8 +1042,9 @@ namespace mongo {
BSON(ShardFields::host(monitor->getServerAddress()))));
conn->done();
}
catch ( DBException & ) {
error() << "RSChangeWatcher: could not update config db for set: " << monitor->getName() << " to: " << monitor->getServerAddress() << endl;
catch ( DBException& e ) {
error() << "RSChangeWatcher: could not update config db for set: " << monitor->getName() << " to: " << monitor->getServerAddress()
<< causedBy( e ) << endl;
}
}

Expand Down

0 comments on commit feacfec

Please sign in to comment.