浏览代码

Merge pull request #2658 from DaliusK/patch-1

Error message fix in Pool
Andrej Hudec 10 年之前
父节点
当前提交
857a952823
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Admin/Pool.php

+ 1 - 1
Admin/Pool.php

@@ -149,7 +149,7 @@ class Pool
         }
 
         if (count($this->adminClasses[$class]) > 1) {
-            throw new \RuntimeException(sprintf('Unable to found a valid admin for the class: %s, get too many admin registered: %s', $class, implode(",", $this->adminClasses[$class])));
+            throw new \RuntimeException(sprintf('Unable to find a valid admin for the class: %s, there are too many registered: %s', $class, implode(",", $this->adminClasses[$class])));
         }
 
         return $this->getInstance($this->adminClasses[$class][0]);