projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
537c70b
)
improve CRM_Utils_Type::escape error message
author
Eileen McNaughton
<eileen@fuzion.co.nz>
Wed, 14 Jan 2015 21:40:34 +0000
(10:40 +1300)
committer
Eileen 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
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Utils/Type.php
b/CRM/Utils/Type.php
index 49d571c73bdf470bc2c675f8a9e33bfdc593e3cd..ab2ffe6e5ce4d8b463bf934b6e36da25b3e4fb99 100644
(file)
--- a/
CRM/Utils/Type.php
+++ b/
CRM/Utils/Type.php
@@
-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;
}