소스 검색

Merge pull request #558 from intexsys/descriptive-exception

More descriptive exception when adding duplicate or incorrect fields in ListMapper
Thomas 13 년 전
부모
커밋
0245e7c9e0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Datagrid/ListMapper.php

+ 1 - 1
Datagrid/ListMapper.php

@@ -70,7 +70,7 @@ class ListMapper
                 $fieldDescriptionOptions
             );
         } else {
-            throw new \RuntimeException('invalid state');
+            throw new \RuntimeException('Unknown or duplicate field name in list mapper. Field name should be either of FieldDescriptionInterface interface or string. Names should be unique.');
         }
 
         if (!$fieldDescription->getLabel()) {