mirror of
https://github.com/predis/predis.git
synced 2026-09-14 20:37:29 +00:00
Fix a few exception messages.
This commit is contained in:
@@ -224,7 +224,7 @@ class RedisCluster implements ClusterConnectionInterface, IteratorAggregate, Cou
|
||||
$last < $first
|
||||
) {
|
||||
throw new OutOfBoundsException(
|
||||
"Invalid slot range for $connection: [$first-$last]"
|
||||
"Invalid slot range for $connection: [$first-$last]."
|
||||
);
|
||||
}
|
||||
|
||||
@@ -288,7 +288,7 @@ class RedisCluster implements ClusterConnectionInterface, IteratorAggregate, Cou
|
||||
public function getConnectionBySlot($slot)
|
||||
{
|
||||
if ($slot < 0x0000 || $slot > 0x3FFF) {
|
||||
throw new OutOfBoundsException("Invalid slot [$slot]");
|
||||
throw new OutOfBoundsException("Invalid slot [$slot].");
|
||||
}
|
||||
|
||||
if (isset($this->slots[$slot])) {
|
||||
|
||||
Reference in New Issue
Block a user