0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

better error message MINOR

This commit is contained in:
Eliot Horowitz 2009-08-29 23:49:53 -04:00
parent 109df8809d
commit bc7eeba54e

View File

@ -418,7 +418,9 @@ namespace mongo {
if ( s->contains( obj ) )
return *s;
}
throw UserException( "couldn't find a shard which should be impossible" );
stringstream ss;
ss << "couldn't find a shard which should be impossible extracted: " << _key.extractKey( obj );
throw UserException( ss.str() );
}
Shard* ShardManager::findShardOnServer( const string& server ) const {