Fix a few exception messages.

This commit is contained in:
Daniele Alessandri
2013-12-21 10:07:56 +01:00
parent 3ac4141bcb
commit 8916f9a9ee
+2 -2
View File
@@ -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])) {