ソースを参照

Fix a few exception messages.

Daniele Alessandri 11 年 前
コミット
8916f9a9ee
1 ファイル変更2 行追加2 行削除
  1. 2 2
      lib/Predis/Connection/RedisCluster.php

+ 2 - 2
lib/Predis/Connection/RedisCluster.php

@@ -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])) {