Skip to content

Commit feacfec

Browse files
committed
SERVER-7657
Output Error when there is an exception updating replica set.
1 parent 93fdafc commit feacfec

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/mongo/s/config.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,8 +1042,9 @@ namespace mongo {
10421042
BSON(ShardFields::host(monitor->getServerAddress()))));
10431043
conn->done();
10441044
}
1045-
catch ( DBException & ) {
1046-
error() << "RSChangeWatcher: could not update config db for set: " << monitor->getName() << " to: " << monitor->getServerAddress() << endl;
1045+
catch ( DBException& e ) {
1046+
error() << "RSChangeWatcher: could not update config db for set: " << monitor->getName() << " to: " << monitor->getServerAddress()
1047+
<< causedBy( e ) << endl;
10471048
}
10481049
}
10491050

0 commit comments

Comments
 (0)