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:
parent
109df8809d
commit
bc7eeba54e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user