summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2011-09-16 22:40:20 -0400
committerEliot Horowitz <eliot@10gen.com>2011-09-16 22:40:20 -0400
commitfd7849ec10c06947f51a5e25badd3fb332be7fe7 (patch)
tree3531dc3d0888bbcb94bc677cb81dc67a33d9fafe /client
parentfa47c5e30b31cdc6939fbda27ca72b1ca6a80712 (diff)
downloadmongo-fd7849ec10c06947f51a5e25badd3fb332be7fe7.tar.gz
need to describe exception if known when syncclusterconnection fails SERVER-3888
Diffstat (limited to 'client')
-rw-r--r--client/syncclusterconnection.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/syncclusterconnection.cpp b/client/syncclusterconnection.cpp
index 34633d15fa8..fbcdd139dc8 100644
--- a/client/syncclusterconnection.cpp
+++ b/client/syncclusterconnection.cpp
@@ -238,6 +238,9 @@ namespace mongo {
return cursor;
log() << "query failed to: " << _conns[i]->toString() << " no data" << endl;
}
+ catch ( std::exception& e ) {
+ log() << "query failed to: " << _conns[i]->toString() << " exception: " << e.what() << endl;
+ }
catch ( ... ) {
log() << "query failed to: " << _conns[i]->toString() << " exception" << endl;
}