Make exception message more friendly #69

Closed
wants to merge 1 commit into
from
@@ -245,7 +245,7 @@ public Response call( DB db, DBCollection coll, OutMessage m, ServerAddress host
if ( err != null && err.isNotMasterError() ){
checkMaster( true , true );
if ( retries <= 0 ){
- throw new MongoException( "not talking to master and retries used up" );
+ throw new MongoException( "not talking to master and retries used up,error from server:" + err.getError());
}
return call( db , coll , m , hostNeeded , retries -1, readPref, decoder );
}