improve CRM_Utils_Type::escape error message
authorEileen McNaughton <eileen@fuzion.co.nz>
Wed, 14 Jan 2015 21:40:34 +0000 (10:40 +1300)
committerEileen McNaughton <eileen@fuzion.co.nz>
Wed, 14 Jan 2015 21:40:34 +0000 (10:40 +1300)
Give people a clue if they have failed to camel case
the type

CRM/Utils/Type.php

index 49d571c73bdf470bc2c675f8a9e33bfdc593e3cd..ab2ffe6e5ce4d8b463bf934b6e36da25b3e4fb99 100644 (file)
@@ -250,7 +250,9 @@ class CRM_Utils_Type {
         break;
 
       default:
-        CRM_Core_Error::fatal("Cannot recognize $type for $data");
+        CRM_Core_Error::fatal(
+          $type . " is not a recognised (camel cased) data type."
+        );
         break;
     }